#212D88#212D88

#212D88 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.151 H 270.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#212D88
RGBrgb(33, 45, 136)
HSLhsl(233, 61%, 33%)
HSVhsv(233, 76%, 53%)
CMYKcmyk(75.7%, 66.9%, 0%, 46.7%)
CIE-LABlab(23.60, 28.51, -52.11)
CIE-LCHlch(23.60, 59.39, 298.68°)
OKLaboklab(35.28% 0.0014 -0.1506)
OKLCHoklch(35.28% 0.151 270.5)
XYZxyz(6.0080, 3.9770, 23.7388)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D88 #887C21
analogous
#216088 #212D88 #482188
triadic
#212D88 #88212D #2D8821
tetradic
#212D88 #882160 #887C21 #218848
square
#212D88 #882160 #887C21 #218848
split-complementary
#212D88 #884821 #608821
monochromatic
#090C25 #151D57 #212D88 #2D3DB9 #4F5FD4

Accessibility & contrast

On white

11.70
#212D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D88
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D88#FFFFFF#000000##FFFFFF
##212D881.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212d88;
/* rgb */ color: rgb(33, 45, 136);
/* oklch */ color: oklch(35.3% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#6d66ac',
    500: '#212d88',
    950: '#000000',
  },
}
SCSS
$custom: #212d88;
$custom-light: #6d66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212d88",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 233.01,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35275,
    "c": 0.15066,
    "h": 270.5
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#212D88
secondary
#B8AB4D
accent
#D144E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212D88

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

Preview Lab → · Contrast checker → · Palette generator →

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