#212D86#212D86

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

Color values

HEX#212D86
RGBrgb(33, 45, 134)
HSLhsl(233, 60%, 33%)
HSVhsv(233, 75%, 53%)
CMYKcmyk(75.4%, 66.4%, 0%, 47.5%)
CIE-LABlab(23.41, 27.75, -51.16)
CIE-LCHlch(23.41, 58.20, 298.47°)
OKLaboklab(35.08% 0.0015 -0.1479)
OKLCHoklch(35.08% 0.148 270.6)
XYZxyz(5.8672, 3.9207, 22.9972)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D86 #867A21
analogous
#216086 #212D86 #472186
triadic
#212D86 #86212D #2D8621
tetradic
#212D86 #862160 #867A21 #218647
square
#212D86 #862160 #867A21 #218647
split-complementary
#212D86 #864721 #608621
monochromatic
#090C24 #151D55 #212D86 #2D3DB7 #4E5ED3

Accessibility & contrast

On white

11.77
#212D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212D86
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D86#FFFFFF#000000##FFFFFF
##212D861.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212d86;
/* rgb */ color: rgb(33, 45, 134);
/* oklch */ color: oklch(35.1% 0.148 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d66aa',
    500: '#212d86',
    950: '#000000',
  },
}
SCSS
$custom: #212d86;
$custom-light: #6d66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212d86",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 232.871,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3508,
    "c": 0.1479,
    "h": 270.6
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#212D86
secondary
#B7AA4C
accent
#D144E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212D86

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

Preview Lab → · Contrast checker → · Palette generator →

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