#212587#212587

#212587 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.159 H 272.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#212587
RGBrgb(33, 37, 135)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 53%)
CMYKcmyk(75.6%, 72.6%, 0%, 47.1%)
CIE-LABlab(21.56, 33.35, -54.82)
CIE-LCHlch(21.56, 64.17, 301.32°)
OKLaboklab(33.77% 0.0064 -0.1586)
OKLCHoklch(33.77% 0.159 272.3)
XYZxyz(5.6605, 3.3952, 23.2740)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212587 #878321
analogous
#215887 #212587 #502187
triadic
#212587 #872125 #258721
tetradic
#212587 #872158 #878321 #218750
square
#212587 #872158 #878321 #218750
split-complementary
#212587 #875021 #588721
monochromatic
#090A25 #151856 #212587 #2D32B8 #4F54D4

Accessibility & contrast

On white

12.51
#212587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212587
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212587#FFFFFF#000000##FFFFFF
##2125871.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212587;
/* rgb */ color: rgb(33, 37, 135);
/* oklch */ color: oklch(33.8% 0.159 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e60ab',
    500: '#212587',
    950: '#000000',
  },
}
SCSS
$custom: #212587;
$custom-light: #6e60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212587",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 237.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3377,
    "c": 0.15874,
    "h": 272.3
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#212587
secondary
#B7B34D
accent
#DE44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212587

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

Preview Lab → · Contrast checker → · Palette generator →

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