#20407D#20407D

#20407D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.110 H 261.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#20407D
RGBrgb(32, 64, 125)
HSLhsl(219, 59%, 31%)
HSVhsv(219, 74%, 49%)
CMYKcmyk(74.4%, 48.8%, 0%, 51%)
CIE-LABlab(27.99, 10.89, -38.08)
CIE-LCHlch(27.99, 39.61, 285.96°)
OKLaboklab(38.28% -0.0157 -0.1092)
OKLCHoklch(38.28% 0.11 261.8)
XYZxyz(6.1294, 5.4539, 20.1277)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20407D #7D5D20
analogous
#206E7D #20407D #2E207D
triadic
#20407D #7D2040 #407D20
tetradic
#20407D #7D206E #7D5D20 #207D2E
square
#20407D #7D206E #7D5D20 #207D2E
split-complementary
#20407D #7D2E20 #6E7D20
monochromatic
#070E1C #14274C #20407D #2C59AE #4776D0

Accessibility & contrast

On white

10.04
#20407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20407D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20407D#FFFFFF#000000##FFFFFF
##20407D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#093E7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #20407d;
/* rgb */ color: rgb(32, 64, 125);
/* oklch */ color: oklch(38.3% 0.110 261.8);
Tailwind
colors: {
  custom: {
    50: '#6974a3',
    500: '#20407d',
    950: '#000000',
  },
}
SCSS
$custom: #20407d;
$custom-light: #6974a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20407d",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 219.355,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38282,
    "c": 0.11032,
    "h": 261.8
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#20407D
secondary
#B08C49
accent
#AC45E2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20407D

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

Preview Lab → · Contrast checker → · Palette generator →

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