#212D8F#212D8F

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

Color values

HEX#212D8F
RGBrgb(33, 45, 143)
HSLhsl(233, 63%, 35%)
HSVhsv(233, 77%, 56%)
CMYKcmyk(76.9%, 68.5%, 0%, 43.9%)
CIE-LABlab(24.27, 31.14, -55.36)
CIE-LCHlch(24.27, 63.51, 299.36°)
OKLaboklab(35.97% 0.0008 -0.1602)
OKLCHoklch(35.97% 0.16 270.3)
XYZxyz(6.5218, 4.1826, 26.4449)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D8F #8F8321
analogous
#21648F #212D8F #4C218F
triadic
#212D8F #8F212D #2D8F21
tetradic
#212D8F #8F2164 #8F8321 #218F4C
square
#212D8F #8F2164 #8F8321 #218F4C
split-complementary
#212D8F #8F4C21 #648F21
monochromatic
#0A0E2C #161D5D #212D8F #2C3DC1 #5362D7

Accessibility & contrast

On white

11.43
#212D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D8F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D8F#FFFFFF#000000##FFFFFF
##212D8F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212d8f;
/* rgb */ color: rgb(33, 45, 143);
/* oklch */ color: oklch(36.0% 0.160 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f66b1',
    500: '#212d8f',
    950: '#000000',
  },
}
SCSS
$custom: #212d8f;
$custom-light: #6f66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212d8f",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 233.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.16017,
    "h": 270.3
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#212D8F
secondary
#BBAF51
accent
#D442E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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