#20218F#20218F

#20218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.174 H 271.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#20218F
RGBrgb(32, 33, 143)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 78%, 56%)
CMYKcmyk(77.6%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.50, 38.52, -59.93)
CIE-LCHlch(21.50, 71.24, 302.73°)
OKLaboklab(33.96% 0.0059 -0.1735)
OKLCHoklch(33.96% 0.174 271.9)
XYZxyz(6.0958, 3.3773, 26.3119)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218F #8F8E20
analogous
#20598F #20218F #56208F
triadic
#20218F #8F2021 #218F20
tetradic
#20218F #8F2059 #8F8E20 #208F56
square
#20218F #8F2059 #8F8E20 #208F56
split-complementary
#20218F #8F5620 #598F20
monochromatic
#0A0A2B #15155D #20218F #2B2DC1 #5152D8

Accessibility & contrast

On white

12.53
#20218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20218F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218F#FFFFFF#000000##FFFFFF
##20218F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20218f;
/* rgb */ color: rgb(32, 33, 143);
/* oklch */ color: oklch(34.0% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#705eb1',
    500: '#20218f',
    950: '#000000',
  },
}
SCSS
$custom: #20218f;
$custom-light: #705eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#20218f",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 239.459,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.17357,
    "h": 271.9
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#20218F
secondary
#BBBA4F
accent
#E541E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20218F

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

Preview Lab → · Contrast checker → · Palette generator →

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