#20208B#20208B

#20208B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.170 H 272.4°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#20208B
RGBrgb(32, 32, 139)
HSLhsl(240, 63%, 34%)
HSVhsv(240, 77%, 55%)
CMYKcmyk(77%, 77%, 0%, 45.5%)
CIE-LABlab(20.84, 37.72, -58.51)
CIE-LCHlch(20.84, 69.62, 302.81°)
OKLaboklab(33.37% 0.0071 -0.1694)
OKLCHoklch(33.37% 0.17 272.4)
XYZxyz(5.7708, 3.2036, 24.7353)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20208B #8B8B20
analogous
#20558B #20208B #55208B
triadic
#20208B #8B2020 #208B20
tetradic
#20208B #8B2055 #8B8B20 #208B55
square
#20208B #8B2055 #8B8B20 #208B55
split-complementary
#20208B #8B5520 #558B20
monochromatic
#090928 #151559 #20208B #2B2BBD #4F4FD6

Accessibility & contrast

On white

12.80
#20208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#20208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20208B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20208B#FFFFFF#000000##FFFFFF
##20208B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20208b;
/* rgb */ color: rgb(32, 32, 139);
/* oklch */ color: oklch(33.4% 0.170 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f5dae',
    500: '#20208b',
    950: '#000000',
  },
}
SCSS
$custom: #20208b;
$custom-light: #6f5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#20208b",
  "rgb": {
    "r": 32,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.16951,
    "h": 272.4
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#20208B
secondary
#BABA4D
accent
#E642E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #20208B

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

Preview Lab → · Contrast checker → · Palette generator →

#20208B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva