#212788#212788

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

Color values

HEX#212788
RGBrgb(33, 39, 136)
HSLhsl(237, 61%, 33%)
HSVhsv(237, 76%, 53%)
CMYKcmyk(75.7%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.13, 32.45, -54.51)
CIE-LCHlch(22.13, 63.44, 300.76°)
OKLaboklab(34.21% 0.0051 -0.1577)
OKLCHoklch(34.21% 0.158 271.9)
XYZxyz(5.7952, 3.5513, 23.6678)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212788 #888221
analogous
#215A88 #212788 #4E2188
triadic
#212788 #882127 #278821
tetradic
#212788 #88215A #888221 #21884E
square
#212788 #88215A #888221 #21884E
split-complementary
#212788 #884E21 #5A8821
monochromatic
#090B25 #151957 #212788 #2D35B9 #4F57D4

Accessibility & contrast

On white

12.28
#212788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212788
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212788#FFFFFF#000000##FFFFFF
##2127881.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.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: #212788;
/* rgb */ color: rgb(33, 39, 136);
/* oklch */ color: oklch(34.2% 0.158 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e61ac',
    500: '#212788',
    950: '#000000',
  },
}
SCSS
$custom: #212788;
$custom-light: #6e61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212788",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 236.505,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34209,
    "c": 0.15779,
    "h": 271.9
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#212788
secondary
#B8B14D
accent
#DB44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212788

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

Preview Lab → · Contrast checker → · Palette generator →

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