#20406F#20406F

#20406F is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.3% C 0.089 H 258.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#20406F
RGBrgb(32, 64, 111)
HSLhsl(216, 55%, 28%)
HSVhsv(216, 71%, 44%)
CMYKcmyk(71.2%, 42.3%, 0%, 56.5%)
CIE-LABlab(27.08, 5.31, -30.71)
CIE-LCHlch(27.08, 31.16, 279.82°)
OKLaboklab(37.28% -0.0186 -0.0875)
OKLCHoklch(37.28% 0.089 258)
XYZxyz(5.2973, 5.1210, 15.7451)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20406F #6F4F20
analogous
#20676F #20406F #27206F
triadic
#20406F #6F2040 #406F20
tetradic
#20406F #6F2067 #6F4F20 #206F27
square
#20406F #6F2067 #6F4F20 #206F27
split-complementary
#20406F #6F2720 #676F20
monochromatic
#070E18 #12253F #20406F #2E5B9F #4178C8

Accessibility & contrast

On white

10.37
#20406F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20406F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20406F#FFFFFF#000000##FFFFFF
##20406F1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4471
Deuteranopia (green-blind)
#1E3D6E
Tritanopia (blue-blind)
#004B52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #20406f;
/* rgb */ color: rgb(32, 64, 111);
/* oklch */ color: oklch(37.3% 0.089 258.0);
Tailwind
colors: {
  custom: {
    50: '#657498',
    500: '#20406f',
    950: '#000000',
  },
}
SCSS
$custom: #20406f;
$custom-light: #657498;
$custom-dark: #000000;
JSON
{
  "hex": "#20406f",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 111
  },
  "hsl": {
    "h": 215.696,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37282,
    "c": 0.08946,
    "h": 258
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#20406F
secondary
#A37E48
accent
#A249DF
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #20406F

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

Preview Lab → · Contrast checker → · Palette generator →

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