#20207F#20207F

#20207F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 273.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#20207F
RGBrgb(32, 32, 127)
HSLhsl(240, 60%, 31%)
HSVhsv(240, 75%, 50%)
CMYKcmyk(74.8%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.52, 33.50, -53.14)
CIE-LCHlch(19.52, 62.81, 302.23°)
OKLaboklab(32.04% 0.0093 -0.1537)
OKLCHoklch(32.04% 0.154 273.5)
XYZxyz(4.9417, 2.8719, 20.3685)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20207F #7F7F20
analogous
#204F7F #20207F #4F207F
triadic
#20207F #7F2020 #207F20
tetradic
#20207F #7F204F #7F7F20 #207F4F
square
#20207F #7F204F #7F7F20 #207F4F
split-complementary
#20207F #7F4F20 #4F7F20
monochromatic
#07071D #14144E #20207F #2C2CB0 #4848D1

Accessibility & contrast

On white

13.34
#20207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20207F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20207F#FFFFFF#000000##FFFFFF
##20207F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20207f;
/* rgb */ color: rgb(32, 32, 127);
/* oklch */ color: oklch(32.0% 0.154 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c5ca5',
    500: '#20207f',
    950: '#000000',
  },
}
SCSS
$custom: #20207f;
$custom-light: #6c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#20207f",
  "rgb": {
    "r": 32,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3204,
    "c": 0.15398,
    "h": 273.5
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#20207F
secondary
#B2B249
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #20207F

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

Preview Lab → · Contrast checker → · Palette generator →

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