#20407E#20407E

#20407E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.112 H 262.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#20407E
RGBrgb(32, 64, 126)
HSLhsl(220, 59%, 31%)
HSVhsv(220, 75%, 49%)
CMYKcmyk(74.6%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.06, 11.29, -38.60)
CIE-LCHlch(28.06, 40.22, 286.31°)
OKLaboklab(38.36% -0.0155 -0.1107)
OKLCHoklch(38.36% 0.112 262)
XYZxyz(6.1936, 5.4796, 20.4659)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20407E #7E5E20
analogous
#206F7E #20407E #2F207E
triadic
#20407E #7E2040 #407E20
tetradic
#20407E #7E206F #7E5E20 #207E2F
square
#20407E #7E206F #7E5E20 #207E2F
split-complementary
#20407E #7E2F20 #6F7E20
monochromatic
#070E1C #14274D #20407E #2C59AF #4876D0

Accessibility & contrast

On white

10.02
#20407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#20407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20407E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20407E#FFFFFF#000000##FFFFFF
##20407E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #20407e;
/* rgb */ color: rgb(32, 64, 126);
/* oklch */ color: oklch(38.4% 0.112 262.0);
Tailwind
colors: {
  custom: {
    50: '#6974a4',
    500: '#20407e',
    950: '#000000',
  },
}
SCSS
$custom: #20407e;
$custom-light: #6974a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20407e",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 219.574,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38357,
    "c": 0.11179,
    "h": 262
  },
  "luminance": 0.0548
}

Semantic roles & 50–950 ramp

primary
#20407E
secondary
#B18D49
accent
#AD45E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20407E

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

Preview Lab → · Contrast checker → · Palette generator →

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