#202887#202887

#202887 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.156 H 271.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#202887
RGBrgb(32, 40, 135)
HSLhsl(235, 62%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(76.3%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.21, 31.32, -53.76)
CIE-LCHlch(22.21, 62.22, 300.23°)
OKLaboklab(34.22% 0.0035 -0.1555)
OKLCHoklch(34.22% 0.156 271.3)
XYZxyz(5.7261, 3.5733, 23.3049)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202887 #877F20
analogous
#205B87 #202887 #4C2087
triadic
#202887 #872028 #288720
tetradic
#202887 #87205B #877F20 #20874C
square
#202887 #87205B #877F20 #20874C
split-complementary
#202887 #874C20 #5B8720
monochromatic
#090B24 #141956 #202887 #2C37B8 #4D57D5

Accessibility & contrast

On white

12.25
#202887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#202887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202887
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202887#FFFFFF#000000##FFFFFF
##2028871.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #202887;
/* rgb */ color: rgb(32, 40, 135);
/* oklch */ color: oklch(34.2% 0.156 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d62ab',
    500: '#202887',
    950: '#000000',
  },
}
SCSS
$custom: #202887;
$custom-light: #6d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#202887",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 235.34,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3422,
    "c": 0.15557,
    "h": 271.3
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#202887
secondary
#B8AF4B
accent
#D843E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #202887

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

Preview Lab → · Contrast checker → · Palette generator →

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