#20218A#20218A

#20218A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.167 H 272.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#20218A
RGBrgb(32, 33, 138)
HSLhsl(239, 62%, 33%)
HSVhsv(239, 77%, 54%)
CMYKcmyk(76.8%, 76.1%, 0%, 45.9%)
CIE-LABlab(20.94, 36.78, -57.73)
CIE-LCHlch(20.94, 68.45, 302.50°)
OKLaboklab(33.41% 0.0068 -0.1671)
OKLCHoklch(33.41% 0.167 272.3)
XYZxyz(5.7254, 3.2292, 24.3614)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218A #8A8920
analogous
#20568A #20218A #54208A
triadic
#20218A #8A2021 #218A20
tetradic
#20218A #8A2056 #8A8920 #208A54
square
#20218A #8A2056 #8A8920 #208A54
split-complementary
#20218A #8A5420 #568A20
monochromatic
#090927 #141558 #20218A #2C2DBC #4E50D6

Accessibility & contrast

On white

12.76
#20218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20218A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218A#FFFFFF#000000##FFFFFF
##20218A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20218a;
/* rgb */ color: rgb(32, 33, 138);
/* oklch */ color: oklch(33.4% 0.167 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#20218a',
    950: '#000000',
  },
}
SCSS
$custom: #20218a;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#20218a",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 239.434,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33405,
    "c": 0.16722,
    "h": 272.3
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#20218A
secondary
#B9B84D
accent
#E442E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #20218A

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

Preview Lab → · Contrast checker → · Palette generator →

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