#202788#202788

#202788 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 271.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#202788
RGBrgb(32, 39, 136)
HSLhsl(236, 62%, 33%)
HSVhsv(236, 76%, 53%)
CMYKcmyk(76.5%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.07, 32.34, -54.61)
CIE-LCHlch(22.07, 63.47, 300.63°)
OKLaboklab(34.15% 0.004 -0.158)
OKLCHoklch(34.15% 0.158 271.4)
XYZxyz(5.7636, 3.5351, 23.6664)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202788 #888120
analogous
#205B88 #202788 #4D2088
triadic
#202788 #882027 #278820
tetradic
#202788 #88205B #888120 #20884D
square
#202788 #88205B #888120 #20884D
split-complementary
#202788 #884D20 #5B8820
monochromatic
#090B25 #141956 #202788 #2C35BA #4D56D5

Accessibility & contrast

On white

12.30
#202788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #202788
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202788#FFFFFF#000000##FFFFFF
##2027881.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202788;
/* rgb */ color: rgb(32, 39, 136);
/* oklch */ color: oklch(34.2% 0.158 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#202788',
    950: '#000000',
  },
}
SCSS
$custom: #202788;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#202788",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 235.962,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.15807,
    "h": 271.4
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #202788

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

Preview Lab → · Contrast checker → · Palette generator →

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