#212187#212187

#212187 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.163 H 273.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#212187
RGBrgb(33, 33, 135)
HSLhsl(240, 61%, 33%)
HSVhsv(240, 76%, 53%)
CMYKcmyk(75.6%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.67, 35.82, -56.29)
CIE-LCHlch(20.67, 66.72, 302.48°)
OKLaboklab(33.13% 0.0086 -0.1629)
OKLCHoklch(33.13% 0.163 273)
XYZxyz(5.5428, 3.1597, 23.2348)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212187 #878721
analogous
#215487 #212187 #542187
triadic
#212187 #872121 #218721
tetradic
#212187 #872154 #878721 #218754
square
#212187 #872154 #878721 #218754
split-complementary
#212187 #875421 #548721
monochromatic
#090925 #151556 #212187 #2D2DB8 #4F4FD4

Accessibility & contrast

On white

12.87
#212187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212187
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212187#FFFFFF#000000##FFFFFF
##2121871.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212187;
/* rgb */ color: rgb(33, 33, 135);
/* oklch */ color: oklch(33.1% 0.163 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e5dab',
    500: '#212187',
    950: '#000000',
  },
}
SCSS
$custom: #212187;
$custom-light: #6e5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#212187",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33134,
    "c": 0.16309,
    "h": 273
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#212187
secondary
#B7B74D
accent
#E444E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212187

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

Preview Lab → · Contrast checker → · Palette generator →

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