#20407C#20407C

#20407C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.109 H 261.6°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#20407C
RGBrgb(32, 64, 124)
HSLhsl(219, 59%, 31%)
HSVhsv(219, 74%, 49%)
CMYKcmyk(74.2%, 48.4%, 0%, 51.4%)
CIE-LABlab(27.92, 10.49, -37.57)
CIE-LCHlch(27.92, 39.01, 285.60°)
OKLaboklab(38.21% -0.0159 -0.1077)
OKLCHoklch(38.21% 0.109 261.6)
XYZxyz(6.0658, 5.4285, 19.7930)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20407C #7C5C20
analogous
#206E7C #20407C #2E207C
triadic
#20407C #7C2040 #407C20
tetradic
#20407C #7C206E #7C5C20 #207C2E
square
#20407C #7C206E #7C5C20 #207C2E
split-complementary
#20407C #7C2E20 #6E7C20
monochromatic
#070E1B #13274B #20407C #2D59AD #4776CF

Accessibility & contrast

On white

10.07
#20407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#20407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20407C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20407C#FFFFFF#000000##FFFFFF
##20407C1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467E
Deuteranopia (green-blind)
#0B3E7B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #20407c;
/* rgb */ color: rgb(32, 64, 124);
/* oklch */ color: oklch(38.2% 0.109 261.6);
Tailwind
colors: {
  custom: {
    50: '#6874a2',
    500: '#20407c',
    950: '#000000',
  },
}
SCSS
$custom: #20407c;
$custom-light: #6874a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20407c",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 219.13,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.10884,
    "h": 261.6
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

primary
#20407C
secondary
#AF8B49
accent
#AC46E2
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20407C

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

Preview Lab → · Contrast checker → · Palette generator →

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