#20215F#20215F

#20215F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.0% C 0.108 H 276.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#20215F
RGBrgb(32, 33, 95)
HSLhsl(239, 50%, 25%)
HSVhsv(239, 66%, 37%)
CMYKcmyk(66.3%, 65.3%, 0%, 62.7%)
CIE-LABlab(16.61, 20.98, -37.17)
CIE-LCHlch(16.61, 42.68, 299.45°)
OKLaboklab(28.96% 0.0124 -0.107)
OKLCHoklch(28.96% 0.108 276.6)
XYZxyz(3.2044, 2.2208, 11.0840)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20215F #5F5E20
analogous
#20405F #20215F #3F205F
triadic
#20215F #5F2021 #215F20
tetradic
#20215F #5F2040 #5F5E20 #205F3F
square
#20215F #5F2040 #5F5E20 #205F3F
split-complementary
#20215F #5F3F20 #405F20
monochromatic
#080817 #111131 #20215F #2F318D #3F41BB

Accessibility & contrast

On white

14.54
#20215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#20215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20215F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20215F#FFFFFF#000000##FFFFFF
##20215F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20215f;
/* rgb */ color: rgb(32, 33, 95);
/* oklch */ color: oklch(29.0% 0.108 276.6);
Tailwind
colors: {
  custom: {
    50: '#645c8d',
    500: '#20215f',
    950: '#000000',
  },
}
SCSS
$custom: #20215f;
$custom-light: #645c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#20215f",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 239.048,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2896,
    "c": 0.10768,
    "h": 276.6
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#20215F
secondary
#939247
accent
#D74FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #20215F

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

Preview Lab → · Contrast checker → · Palette generator →

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