#212D8E#212D8E

#212D8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.159 H 270.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#212D8E
RGBrgb(33, 45, 142)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 77%, 56%)
CMYKcmyk(76.8%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.17, 30.76, -54.90)
CIE-LCHlch(24.17, 62.93, 299.26°)
OKLaboklab(35.87% 0.0009 -0.1588)
OKLCHoklch(35.87% 0.159 270.3)
XYZxyz(6.4464, 4.1524, 26.0477)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D8E #8E8221
analogous
#21648E #212D8E #4B218E
triadic
#212D8E #8E212D #2D8E21
tetradic
#212D8E #8E2164 #8E8221 #218E4B
square
#212D8E #8E2164 #8E8221 #218E4B
split-complementary
#212D8E #8E4B21 #648E21
monochromatic
#0A0E2B #151D5C #212D8E #2D3DC0 #5261D7

Accessibility & contrast

On white

11.47
#212D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D8E
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D8E#FFFFFF#000000##FFFFFF
##212D8E1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212d8e;
/* rgb */ color: rgb(33, 45, 142);
/* oklch */ color: oklch(35.9% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f66b0',
    500: '#212d8e',
    950: '#000000',
  },
}
SCSS
$custom: #212d8e;
$custom-light: #6f66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212d8e",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 233.394,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35869,
    "c": 0.15882,
    "h": 270.3
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#212D8E
secondary
#BAAF50
accent
#D342E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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