#212D87#212D87

#212D87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.149 H 270.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#212D87
RGBrgb(33, 45, 135)
HSLhsl(233, 61%, 33%)
HSVhsv(233, 76%, 53%)
CMYKcmyk(75.6%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.50, 28.13, -51.63)
CIE-LCHlch(23.50, 58.80, 298.58°)
OKLaboklab(35.18% 0.0014 -0.1493)
OKLCHoklch(35.18% 0.149 270.6)
XYZxyz(5.9373, 3.9488, 23.3663)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D87 #877B21
analogous
#216087 #212D87 #482187
triadic
#212D87 #87212D #2D8721
tetradic
#212D87 #872160 #877B21 #218748
square
#212D87 #872160 #877B21 #218748
split-complementary
#212D87 #874821 #608721
monochromatic
#090C25 #151D56 #212D87 #2D3DB8 #4F5ED4

Accessibility & contrast

On white

11.73
#212D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D87
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D87#FFFFFF#000000##FFFFFF
##212D871.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212d87;
/* rgb */ color: rgb(33, 45, 135);
/* oklch */ color: oklch(35.2% 0.149 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d66ab',
    500: '#212d87',
    950: '#000000',
  },
}
SCSS
$custom: #212d87;
$custom-light: #6d66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212d87",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 232.941,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35177,
    "c": 0.14928,
    "h": 270.6
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#212D87
secondary
#B7AB4D
accent
#D144E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212D87

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

Preview Lab → · Contrast checker → · Palette generator →

#212D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva