#202987#202987

#202987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.154 H 271.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#202987
RGBrgb(32, 41, 135)
HSLhsl(235, 62%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(76.3%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.45, 30.67, -53.36)
CIE-LCHlch(22.45, 61.55, 299.89°)
OKLaboklab(34.39% 0.0029 -0.1544)
OKLCHoklch(34.39% 0.154 271.1)
XYZxyz(5.7603, 3.6416, 23.3163)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202987 #877E20
analogous
#205D87 #202987 #4A2087
triadic
#202987 #872029 #298720
tetradic
#202987 #87205D #877E20 #20874A
square
#202987 #87205D #877E20 #20874A
split-complementary
#202987 #874A20 #5D8720
monochromatic
#090B24 #141A56 #202987 #2C38B8 #4D59D5

Accessibility & contrast

On white

12.15
#202987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#202987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202987
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202987#FFFFFF#000000##FFFFFF
##2029871.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #202987;
/* rgb */ color: rgb(32, 41, 135);
/* oklch */ color: oklch(34.4% 0.154 271.1);
Tailwind
colors: {
  custom: {
    50: '#6d63ab',
    500: '#202987',
    950: '#000000',
  },
}
SCSS
$custom: #202987;
$custom-light: #6d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#202987",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 234.757,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.1544,
    "h": 271.1
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#202987
secondary
#B8AE4B
accent
#D743E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #202987

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

Preview Lab → · Contrast checker → · Palette generator →

#202987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva