#212D7F#212D7F

#212D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.138 H 270.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#212D7F
RGBrgb(33, 45, 127)
HSLhsl(232, 59%, 31%)
HSVhsv(232, 74%, 50%)
CMYKcmyk(74%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.76, 25.07, -47.81)
CIE-LCHlch(22.76, 53.99, 297.67°)
OKLaboklab(34.41% 0.0018 -0.1381)
OKLCHoklch(34.41% 0.138 270.8)
XYZxyz(5.3950, 3.7319, 20.5106)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7F #7F7321
analogous
#215C7F #212D7F #44217F
triadic
#212D7F #7F212D #2D7F21
tetradic
#212D7F #7F215C #7F7321 #217F44
square
#212D7F #7F215C #7F7321 #217F44
split-complementary
#212D7F #7F4421 #5C7F21
monochromatic
#080B1E #141C4E #212D7F #2E3EB0 #4A5BD0

Accessibility & contrast

On white

12.02
#212D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D7F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D7F#FFFFFF#000000##FFFFFF
##212D7F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212d7f;
/* rgb */ color: rgb(33, 45, 127);
/* oklch */ color: oklch(34.4% 0.138 270.8);
Tailwind
colors: {
  custom: {
    50: '#6b65a5',
    500: '#212d7f',
    950: '#000000',
  },
}
SCSS
$custom: #212d7f;
$custom-light: #6b65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7f",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 232.34,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34409,
    "c": 0.13809,
    "h": 270.8
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#212D7F
secondary
#B2A44A
accent
#CE46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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