#212A9D#212A9D

#212A9D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.182 H 270.2°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#212A9D
RGBrgb(33, 42, 157)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 62%)
CMYKcmyk(79%, 73.2%, 0%, 38.4%)
CIE-LABlab(24.99, 38.14, -62.77)
CIE-LCHlch(24.99, 73.45, 301.28°)
OKLaboklab(36.92% 0.0008 -0.1818)
OKLCHoklch(36.92% 0.182 270.2)
XYZxyz(7.5389, 4.4127, 32.3462)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A9D #9D9421
analogous
#21689D #212A9D #56219D
triadic
#212A9D #9D212A #2A9D21
tetradic
#212A9D #9D2168 #9D9421 #219D56
square
#212A9D #9D2168 #9D9421 #219D56
split-complementary
#212A9D #9D5621 #689D21
monochromatic
#0C0F38 #161C6A #212A9D #2C38D0 #5C65DD

Accessibility & contrast

On white

11.15
#212A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#212A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A9D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A9D#FFFFFF#000000##FFFFFF
##212A9D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212a9d;
/* rgb */ color: rgb(33, 42, 157);
/* oklch */ color: oklch(36.9% 0.182 270.2);
Tailwind
colors: {
  custom: {
    50: '#7364bb',
    500: '#212a9d',
    950: '#000000',
  },
}
SCSS
$custom: #212a9d;
$custom-light: #7364bb;
$custom-dark: #000000;
JSON
{
  "hex": "#212a9d",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 235.645,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36922,
    "c": 0.18179,
    "h": 270.2
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#212A9D
secondary
#C1B959
accent
#DC40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #212A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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