#212D85#212D85

#212D85 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.147 H 270.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#212D85
RGBrgb(33, 45, 133)
HSLhsl(233, 60%, 33%)
HSVhsv(233, 75%, 52%)
CMYKcmyk(75.2%, 66.2%, 0%, 47.8%)
CIE-LABlab(23.31, 27.36, -50.69)
CIE-LCHlch(23.31, 57.60, 298.36°)
OKLaboklab(34.98% 0.0016 -0.1465)
OKLCHoklch(34.98% 0.147 270.6)
XYZxyz(5.7978, 3.8930, 22.6316)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D85 #857921
analogous
#215F85 #212D85 #472185
triadic
#212D85 #85212D #2D8521
tetradic
#212D85 #85215F #857921 #218547
square
#212D85 #85215F #857921 #218547
split-complementary
#212D85 #854721 #5F8521
monochromatic
#090C23 #151C54 #212D85 #2D3EB6 #4D5DD3

Accessibility & contrast

On white

11.81
#212D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D85
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D85#FFFFFF#000000##FFFFFF
##212D851.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212d85;
/* rgb */ color: rgb(33, 45, 133);
/* oklch */ color: oklch(35.0% 0.147 270.6);
Tailwind
colors: {
  custom: {
    50: '#6c66a9',
    500: '#212d85',
    950: '#000000',
  },
}
SCSS
$custom: #212d85;
$custom-light: #6c66a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212d85",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 232.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.14651,
    "h": 270.6
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#212D85
secondary
#B6A94C
accent
#D044E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212D85

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

Preview Lab → · Contrast checker → · Palette generator →

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