#212787#212787

#212787 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.156 H 271.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#212787
RGBrgb(33, 39, 135)
HSLhsl(236, 61%, 33%)
HSVhsv(236, 76%, 53%)
CMYKcmyk(75.6%, 71.1%, 0%, 47.1%)
CIE-LABlab(22.03, 32.08, -54.05)
CIE-LCHlch(22.03, 62.86, 300.69°)
OKLaboklab(34.11% 0.0053 -0.1564)
OKLCHoklch(34.11% 0.156 271.9)
XYZxyz(5.7244, 3.5230, 23.2953)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212787 #878121
analogous
#215A87 #212787 #4E2187
triadic
#212787 #872127 #278721
tetradic
#212787 #87215A #878121 #21874E
square
#212787 #87215A #878121 #21874E
split-complementary
#212787 #874E21 #5A8721
monochromatic
#090B25 #151956 #212787 #2D35B8 #4F56D4

Accessibility & contrast

On white

12.32
#212787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212787
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212787#FFFFFF#000000##FFFFFF
##2127871.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.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: #212787;
/* rgb */ color: rgb(33, 39, 135);
/* oklch */ color: oklch(34.1% 0.156 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d61ab',
    500: '#212787',
    950: '#000000',
  },
}
SCSS
$custom: #212787;
$custom-light: #6d61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212787",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 236.471,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34105,
    "c": 0.15646,
    "h": 271.9
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#212787
secondary
#B7B14D
accent
#DA44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212787

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

Preview Lab → · Contrast checker → · Palette generator →

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