#212D8A#212D8A

#212D8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.153 H 270.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#212D8A
RGBrgb(33, 45, 138)
HSLhsl(233, 61%, 34%)
HSVhsv(233, 76%, 54%)
CMYKcmyk(76.1%, 67.4%, 0%, 45.9%)
CIE-LABlab(23.78, 29.26, -53.04)
CIE-LCHlch(23.78, 60.58, 298.88°)
OKLaboklab(35.47% 0.0012 -0.1534)
OKLCHoklch(35.47% 0.153 270.5)
XYZxyz(6.1515, 4.0344, 24.4944)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D8A #8A7E21
analogous
#21618A #212D8A #49218A
triadic
#212D8A #8A212D #2D8A21
tetradic
#212D8A #8A2161 #8A7E21 #218A49
square
#212D8A #8A2161 #8A7E21 #218A49
split-complementary
#212D8A #8A4921 #618A21
monochromatic
#090D27 #151D59 #212D8A #2D3DBB #505FD5

Accessibility & contrast

On white

11.62
#212D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D8A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D8A#FFFFFF#000000##FFFFFF
##212D8A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212d8a;
/* rgb */ color: rgb(33, 45, 138);
/* oklch */ color: oklch(35.5% 0.153 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e66ad',
    500: '#212d8a',
    950: '#000000',
  },
}
SCSS
$custom: #212d8a;
$custom-light: #6e66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212d8a",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 233.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35472,
    "c": 0.15339,
    "h": 270.5
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#212D8A
secondary
#B9AC4E
accent
#D243E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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