#212887#212887

#212887 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.155 H 271.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#212887
RGBrgb(33, 40, 135)
HSLhsl(236, 61%, 33%)
HSVhsv(236, 76%, 53%)
CMYKcmyk(75.6%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.27, 31.43, -53.66)
CIE-LCHlch(22.27, 62.19, 300.36°)
OKLaboklab(34.28% 0.0046 -0.1552)
OKLCHoklch(34.28% 0.155 271.7)
XYZxyz(5.7577, 3.5896, 23.3064)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212887 #878021
analogous
#215B87 #212887 #4D2187
triadic
#212887 #872128 #288721
tetradic
#212887 #87215B #878021 #21874D
square
#212887 #87215B #878021 #21874D
split-complementary
#212887 #874D21 #5B8721
monochromatic
#090B25 #151956 #212887 #2D37B8 #4F58D4

Accessibility & contrast

On white

12.22
#212887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212887
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212887#FFFFFF#000000##FFFFFF
##2128871.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.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: #212887;
/* rgb */ color: rgb(33, 40, 135);
/* oklch */ color: oklch(34.3% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d62ab',
    500: '#212887',
    950: '#000000',
  },
}
SCSS
$custom: #212887;
$custom-light: #6d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212887",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 235.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34277,
    "c": 0.1553,
    "h": 271.7
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#212887
secondary
#B7B04D
accent
#D944E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212887

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

Preview Lab → · Contrast checker → · Palette generator →

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