#20004E

A color in the Violet family

#20004e is a color in the Violet family: RGB(32, 0, 78), HSL(265°, 100%, 15%), CMYK(59%, 100%, 0%, 69%). Closest named color: midnightblue. Contrast is 17.93:1 on white and 1.17:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#20004e
RGBrgb(32 0 78)
RGB (legacy)rgb(32, 0, 78)
RGB %rgb(13% 0% 31%)
HSLhsl(265 100% 15%)
HSV / HSBhsv(265, 100%, 31%)
HWBhwb(265 0% 69%)
CMYKcmyk(59%, 100%, 0%, 69%)
CIELAB (D50)lab(7.07 31.18 -41.11)
LCHlch(7.07 51.6 307.17)
OKLaboklab(0.2214 0.0455 -0.1155)
OKLCHoklch(0.2214 0.1242 291.48)
Decimal2097230

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 8.2
Closest web-safe color#330066
Hue265°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)15%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)7% / 5%
Relative luminance (WCAG)0.0086
Red / Green / Blue32 / 0 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
17.93:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.17:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 103.7 / 0 · As background with white / black text: Lc -106.1 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #20004e;
  --color-brand-oklch: oklch(22.14% 0.1242 291.48);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(32 0 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#20004e] text-[#20004e] border-[#20004e]">