#20406E#20406E

#20406E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.2% C 0.088 H 257.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#20406E
RGBrgb(32, 64, 110)
HSLhsl(215, 55%, 28%)
HSVhsv(215, 71%, 43%)
CMYKcmyk(70.9%, 41.8%, 0%, 56.9%)
CIE-LABlab(27.02, 4.92, -30.17)
CIE-LCHlch(27.02, 30.57, 279.26°)
OKLaboklab(37.21% -0.0188 -0.0859)
OKLCHoklch(37.21% 0.088 257.7)
XYZxyz(5.2425, 5.0991, 15.4568)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20406E #6E4E20
analogous
#20676E #20406E #27206E
triadic
#20406E #6E2040 #406E20
tetradic
#20406E #6E2067 #6E4E20 #206E27
square
#20406E #6E2067 #6E4E20 #206E27
split-complementary
#20406E #6E2720 #676E20
monochromatic
#070E18 #12243F #20406E #2E5C9D #4178C8

Accessibility & contrast

On white

10.40
#20406E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#20406E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20406E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20406E#FFFFFF#000000##FFFFFF
##20406E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4470
Deuteranopia (green-blind)
#1F3C6D
Tritanopia (blue-blind)
#004B51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20406e;
/* rgb */ color: rgb(32, 64, 110);
/* oklch */ color: oklch(37.2% 0.088 257.7);
Tailwind
colors: {
  custom: {
    50: '#657498',
    500: '#20406e',
    950: '#000000',
  },
}
SCSS
$custom: #20406e;
$custom-light: #657498;
$custom-dark: #000000;
JSON
{
  "hex": "#20406e",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 110
  },
  "hsl": {
    "h": 215.385,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.08796,
    "h": 257.7
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#20406E
secondary
#A27D48
accent
#A14ADE
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080D
muted
#7A7B7E

Preview Lab

Preview with #20406E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#20406E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva