#212D9B#212D9B

#212D9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.176 H 269.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#212D9B
RGBrgb(33, 45, 155)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 61%)
CMYKcmyk(78.7%, 71%, 0%, 39.2%)
CIE-LABlab(25.46, 35.56, -60.78)
CIE-LCHlch(25.46, 70.42, 300.33°)
OKLaboklab(37.2% -0.0004 -0.176)
OKLCHoklch(37.2% 0.176 269.9)
XYZxyz(7.4800, 4.5658, 31.4911)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D9B #9B8F21
analogous
#216A9B #212D9B #52219B
triadic
#212D9B #9B212D #2D9B21
tetradic
#212D9B #9B216A #9B8F21 #219B52
square
#212D9B #9B216A #9B8F21 #219B52
split-complementary
#212D9B #9B5221 #6A9B21
monochromatic
#0C1036 #161E69 #212D9B #2C3CCD #5A67DC

Accessibility & contrast

On white

10.98
#212D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#212D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D9B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D9B#FFFFFF#000000##FFFFFF
##212D9B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212d9b;
/* rgb */ color: rgb(33, 45, 155);
/* oklch */ color: oklch(37.2% 0.176 269.9);
Tailwind
colors: {
  custom: {
    50: '#7266ba',
    500: '#212d9b',
    950: '#000000',
  },
}
SCSS
$custom: #212d9b;
$custom-light: #7266ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212d9b",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 234.098,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37196,
    "c": 0.17599,
    "h": 269.9
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#212D9B
secondary
#C0B658
accent
#D740E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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