#212D8D#212D8D

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

Color values

HEX#212D8D
RGBrgb(33, 45, 141)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 77%, 55%)
CMYKcmyk(76.6%, 68.1%, 0%, 44.7%)
CIE-LABlab(24.07, 30.39, -54.44)
CIE-LCHlch(24.07, 62.34, 299.17°)
OKLaboklab(35.77% 0.001 -0.1575)
OKLCHoklch(35.77% 0.157 270.4)
XYZxyz(6.3717, 4.1225, 25.6541)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D8D #8D8121
analogous
#21638D #212D8D #4B218D
triadic
#212D8D #8D212D #2D8D21
tetradic
#212D8D #8D2163 #8D8121 #218D4B
square
#212D8D #8D2163 #8D8121 #218D4B
split-complementary
#212D8D #8D4B21 #638D21
monochromatic
#0A0D2A #151D5B #212D8D #2D3DBF #5261D6

Accessibility & contrast

On white

11.51
#212D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D8D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D8D#FFFFFF#000000##FFFFFF
##212D8D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212d8d;
/* rgb */ color: rgb(33, 45, 141);
/* oklch */ color: oklch(35.8% 0.157 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e66af',
    500: '#212d8d',
    950: '#000000',
  },
}
SCSS
$custom: #212d8d;
$custom-light: #6e66af;
$custom-dark: #000000;
JSON
{
  "hex": "#212d8d",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 233.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.15747,
    "h": 270.4
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#212D8D
secondary
#BAAE50
accent
#D343E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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