#212987#212987

#212987 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.154 H 271.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#212987
RGBrgb(33, 41, 135)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 53%)
CMYKcmyk(75.6%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.51, 30.78, -53.27)
CIE-LCHlch(22.51, 61.52, 300.02°)
OKLaboklab(34.45% 0.004 -0.1541)
OKLCHoklch(34.45% 0.154 271.5)
XYZxyz(5.7918, 3.6579, 23.3178)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212987 #877F21
analogous
#215C87 #212987 #4C2187
triadic
#212987 #872129 #298721
tetradic
#212987 #87215C #877F21 #21874C
square
#212987 #87215C #877F21 #21874C
split-complementary
#212987 #874C21 #5C8721
monochromatic
#090B25 #151A56 #212987 #2D38B8 #4F59D4

Accessibility & contrast

On white

12.13
#212987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212987
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212987#FFFFFF#000000##FFFFFF
##2129871.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212987;
/* rgb */ color: rgb(33, 41, 135);
/* oklch */ color: oklch(34.5% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d63ab',
    500: '#212987',
    950: '#000000',
  },
}
SCSS
$custom: #212987;
$custom-light: #6d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212987",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 235.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34452,
    "c": 0.15412,
    "h": 271.5
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#212987
secondary
#B7AF4D
accent
#D744E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212987

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

Preview Lab → · Contrast checker → · Palette generator →

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