#20207C#20207C

#20207C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.150 H 273.7°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#20207C
RGBrgb(32, 32, 124)
HSLhsl(240, 59%, 31%)
HSVhsv(240, 74%, 49%)
CMYKcmyk(74.2%, 74.2%, 0%, 51.4%)
CIE-LABlab(19.20, 32.42, -51.76)
CIE-LCHlch(19.20, 61.07, 302.06°)
OKLaboklab(31.71% 0.0098 -0.1497)
OKLCHoklch(31.71% 0.15 273.7)
XYZxyz(4.7491, 2.7949, 19.3541)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20207C #7C7C20
analogous
#204E7C #20207C #4E207C
triadic
#20207C #7C2020 #207C20
tetradic
#20207C #7C204E #7C7C20 #207C4E
square
#20207C #7C204E #7C7C20 #207C4E
split-complementary
#20207C #7C4E20 #4E7C20
monochromatic
#07071B #13134B #20207C #2D2DAD #4747CF

Accessibility & contrast

On white

13.47
#20207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20207C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20207C#FFFFFF#000000##FFFFFF
##20207C1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20207c;
/* rgb */ color: rgb(32, 32, 124);
/* oklch */ color: oklch(31.7% 0.150 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ca3',
    500: '#20207c',
    950: '#000000',
  },
}
SCSS
$custom: #20207c;
$custom-light: #6b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#20207c",
  "rgb": {
    "r": 32,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31714,
    "c": 0.15,
    "h": 273.7
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#20207C
secondary
#AFAF49
accent
#E246E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20207C

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

Preview Lab → · Contrast checker → · Palette generator →

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