#20407F#20407F

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

Color values

HEX#20407F
RGBrgb(32, 64, 127)
HSLhsl(220, 60%, 31%)
HSVhsv(220, 75%, 50%)
CMYKcmyk(74.8%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.13, 11.69, -39.11)
CIE-LCHlch(28.13, 40.83, 286.65°)
OKLaboklab(38.43% -0.0154 -0.1122)
OKLCHoklch(38.43% 0.113 262.2)
XYZxyz(6.2585, 5.5055, 20.8074)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20407F #7F5F20
analogous
#206F7F #20407F #2F207F
triadic
#20407F #7F2040 #407F20
tetradic
#20407F #7F206F #7F5F20 #207F2F
square
#20407F #7F206F #7F5F20 #207F2F
split-complementary
#20407F #7F2F20 #6F7F20
monochromatic
#070F1D #14274E #20407F #2C59B0 #4876D1

Accessibility & contrast

On white

9.99
#20407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20407F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20407F#FFFFFF#000000##FFFFFF
##20407F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4781
Deuteranopia (green-blind)
#033E7E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #20407f;
/* rgb */ color: rgb(32, 64, 127);
/* oklch */ color: oklch(38.4% 0.113 262.2);
Tailwind
colors: {
  custom: {
    50: '#6974a4',
    500: '#20407f',
    950: '#000000',
  },
}
SCSS
$custom: #20407f;
$custom-light: #6974a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20407f",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 219.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38433,
    "c": 0.11328,
    "h": 262.2
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#20407F
secondary
#B28F49
accent
#AE45E3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20407F

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

Preview Lab → · Contrast checker → · Palette generator →

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