#212D8B#212D8B

#212D8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.155 H 270.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#212D8B
RGBrgb(33, 45, 139)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 76%, 55%)
CMYKcmyk(76.3%, 67.6%, 0%, 45.5%)
CIE-LABlab(23.88, 29.64, -53.51)
CIE-LCHlch(23.88, 61.17, 298.98°)
OKLaboklab(35.57% 0.0012 -0.1548)
OKLCHoklch(35.57% 0.155 270.4)
XYZxyz(6.2242, 4.0635, 24.8774)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D8B #8B7F21
analogous
#21628B #212D8B #4A218B
triadic
#212D8B #8B212D #2D8B21
tetradic
#212D8B #8B2162 #8B7F21 #218B4A
square
#212D8B #8B2162 #8B7F21 #218B4A
split-complementary
#212D8B #8B4A21 #628B21
monochromatic
#0A0D28 #151D5A #212D8B #2D3DBC #5160D6

Accessibility & contrast

On white

11.58
#212D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212D8B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D8B#FFFFFF#000000##FFFFFF
##212D8B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212d8b;
/* rgb */ color: rgb(33, 45, 139);
/* oklch */ color: oklch(35.6% 0.155 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e66ae',
    500: '#212d8b',
    950: '#000000',
  },
}
SCSS
$custom: #212d8b;
$custom-light: #6e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#212d8b",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 233.208,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35571,
    "c": 0.15476,
    "h": 270.4
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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