Skip to main content
matte

#27206F

Dark Indigo

#27206F is the CSS named color "midnightblue", an exact match. In RGB it breaks down to red 39, green 32, and blue 111 out of 255 each. In HSL terms that's a hue of 245°, 55% saturation, and 28% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.

Every format

HEX#27206f
RGBrgb(39, 32, 111)
HSLhsl(245° 55% 28%)
HSBhsb(245° 71% 44%)
OKLCHoklch(31% 0.131 279°)
OKLABoklab(31% 0.022 -0.129)
LCHlch(18% 51.4 297°)
CMYKcmyk(65% 71% 0% 56%)

Shades (darker)

#27206f · #221867 · #1d1060 · #180758 · #140051

Tints (lighter)

#27206f · #373484 · #48489a · #5a5db1 · #6d71c7

Shades mix #27206F toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.

On white: 13.79:1 — AAA
On black: 1.52:1 — fails

Frequently asked

What is #27206F in RGB?
#27206F is rgb(39, 32, 111) — red 39, green 32, blue 111 out of 255 each.
Does #27206F pass WCAG contrast on a white background?
It has a contrast ratio of 13.79:1 against white, which passes WCAG AAA for normal text.
What's a good background color to pair with #27206F?
White text or a white background gives better contrast (13.79:1) than black (1.52:1).

Related colors

Full color tools