#202787#202787

#202787 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.157 H 271.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#202787
RGBrgb(32, 39, 135)
HSLhsl(236, 62%, 33%)
HSVhsv(236, 76%, 53%)
CMYKcmyk(76.3%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.97, 31.97, -54.15)
CIE-LCHlch(21.97, 62.89, 300.56°)
OKLaboklab(34.05% 0.0041 -0.1567)
OKLCHoklch(34.05% 0.157 271.5)
XYZxyz(5.6929, 3.5068, 23.2938)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202787 #878020
analogous
#205B87 #202787 #4C2087
triadic
#202787 #872027 #278720
tetradic
#202787 #87205B #878020 #20874C
square
#202787 #87205B #878020 #20874C
split-complementary
#202787 #874C20 #5B8720
monochromatic
#090A24 #141956 #202787 #2C35B8 #4D56D5

Accessibility & contrast

On white

12.34
#202787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#202787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202787
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202787#FFFFFF#000000##FFFFFF
##2027871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202787;
/* rgb */ color: rgb(32, 39, 135);
/* oklch */ color: oklch(34.0% 0.157 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d61ab',
    500: '#202787',
    950: '#000000',
  },
}
SCSS
$custom: #202787;
$custom-light: #6d61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#202787",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 235.922,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34047,
    "c": 0.15673,
    "h": 271.5
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#202787
secondary
#B8B04B
accent
#DA43E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #202787

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

Preview Lab → · Contrast checker → · Palette generator →

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