#20218B#20218B

#20218B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.169 H 272.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#20218B
RGBrgb(32, 33, 139)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 55%)
CMYKcmyk(77%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.05, 37.13, -58.17)
CIE-LCHlch(21.05, 69.01, 302.55°)
OKLaboklab(33.52% 0.0066 -0.1684)
OKLCHoklch(33.52% 0.169 272.2)
XYZxyz(5.7982, 3.2583, 24.7444)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218B #8B8A20
analogous
#20568B #20218B #54208B
triadic
#20218B #8B2021 #218B20
tetradic
#20218B #8B2056 #8B8A20 #208B54
square
#20218B #8B2056 #8B8A20 #208B54
split-complementary
#20218B #8B5420 #568B20
monochromatic
#090928 #151559 #20218B #2B2DBD #4F50D6

Accessibility & contrast

On white

12.71
#20218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#20218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20218B
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218B#FFFFFF#000000##FFFFFF
##20218B1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20218b;
/* rgb */ color: rgb(32, 33, 139);
/* oklch */ color: oklch(33.5% 0.169 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f5eae',
    500: '#20218b',
    950: '#000000',
  },
}
SCSS
$custom: #20218b;
$custom-light: #6f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#20218b",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 239.439,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33516,
    "c": 0.1685,
    "h": 272.2
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#20218B
secondary
#BAB94D
accent
#E442E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #20218B

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

Preview Lab → · Contrast checker → · Palette generator →

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