#20207E#20207E

#20207E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 273.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#20207E
RGBrgb(32, 32, 126)
HSLhsl(240, 59%, 31%)
HSVhsv(240, 75%, 49%)
CMYKcmyk(74.6%, 74.6%, 0%, 50.6%)
CIE-LABlab(19.42, 33.14, -52.68)
CIE-LCHlch(19.42, 62.23, 302.17°)
OKLaboklab(31.93% 0.0095 -0.1524)
OKLCHoklch(31.93% 0.153 273.6)
XYZxyz(4.8768, 2.8460, 20.0269)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20207E #7E7E20
analogous
#204F7E #20207E #4F207E
triadic
#20207E #7E2020 #207E20
tetradic
#20207E #7E204F #7E7E20 #207E4F
square
#20207E #7E204F #7E7E20 #207E4F
split-complementary
#20207E #7E4F20 #4F7E20
monochromatic
#07071C #14144D #20207E #2C2CAF #4848D0

Accessibility & contrast

On white

13.38
#20207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20207E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20207E#FFFFFF#000000##FFFFFF
##20207E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20207e;
/* rgb */ color: rgb(32, 32, 126);
/* oklch */ color: oklch(31.9% 0.153 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#20207e',
    950: '#000000',
  },
}
SCSS
$custom: #20207e;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#20207e",
  "rgb": {
    "r": 32,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.15266,
    "h": 273.6
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#20207E
secondary
#B1B149
accent
#E345E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20207E

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

Preview Lab → · Contrast checker → · Palette generator →

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