#212D7D#212D7D

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

Color values

HEX#212D7D
RGBrgb(33, 45, 125)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 74%, 49%)
CMYKcmyk(73.6%, 64%, 0%, 51%)
CIE-LABlab(22.58, 24.30, -46.84)
CIE-LCHlch(22.58, 52.77, 297.42°)
OKLaboklab(34.22% 0.0019 -0.1352)
OKLCHoklch(34.22% 0.135 270.8)
XYZxyz(5.2660, 3.6802, 19.8309)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7D #7D7121
analogous
#215B7D #212D7D #43217D
triadic
#212D7D #7D212D #2D7D21
tetradic
#212D7D #7D215B #7D7121 #217D43
square
#212D7D #7D215B #7D7121 #217D43
split-complementary
#212D7D #7D4321 #5B7D21
monochromatic
#070A1C #141C4D #212D7D #2E3EAD #495BCF

Accessibility & contrast

On white

12.10
#212D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D7D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D7D#FFFFFF#000000##FFFFFF
##212D7D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212d7d;
/* rgb */ color: rgb(33, 45, 125);
/* oklch */ color: oklch(34.2% 0.135 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a65a3',
    500: '#212d7d',
    950: '#000000',
  },
}
SCSS
$custom: #212d7d;
$custom-light: #6a65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7d",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 232.174,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3422,
    "c": 0.13524,
    "h": 270.8
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#212D7D
secondary
#B0A34A
accent
#CD46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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