#20219F#20219F

#20219F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.193 H 270.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#20219F
RGBrgb(32, 33, 159)
HSLhsl(240, 66%, 37%)
HSVhsv(240, 80%, 62%)
CMYKcmyk(79.9%, 79.2%, 0%, 37.6%)
CIE-LABlab(23.33, 43.94, -66.75)
CIE-LCHlch(23.33, 79.91, 303.36°)
OKLaboklab(35.79% 0.0027 -0.1933)
OKLCHoklch(35.79% 0.193 270.8)
XYZxyz(7.3954, 3.8972, 33.1566)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20219F #9F9E20
analogous
#20609F #20219F #5F209F
triadic
#20219F #9F2021 #219F20
tetradic
#20219F #9F2060 #9F9E20 #209F5F
square
#20219F #9F2060 #9F9E20 #209F5F
split-complementary
#20219F #9F5F20 #609F20
monochromatic
#0B0C39 #16166C #20219F #2A2CD2 #5B5CDE

Accessibility & contrast

On white

11.80
#20219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#20219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20219F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20219F#FFFFFF#000000##FFFFFF
##20219F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20219f;
/* rgb */ color: rgb(32, 33, 159);
/* oklch */ color: oklch(35.8% 0.193 270.8);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#20219f',
    950: '#000000',
  },
}
SCSS
$custom: #20219f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#20219f",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 239.528,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35793,
    "c": 0.19329,
    "h": 270.8
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#20219F
secondary
#C2C159
accent
#E83EE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #20219F

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

Preview Lab → · Contrast checker → · Palette generator →

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