#212A9C#212A9C

#212A9C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.181 H 270.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#212A9C
RGBrgb(33, 42, 156)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 61%)
CMYKcmyk(78.8%, 73.1%, 0%, 38.8%)
CIE-LABlab(24.89, 37.79, -62.34)
CIE-LCHlch(24.89, 72.90, 301.22°)
OKLaboklab(36.81% 0.0009 -0.1805)
OKLCHoklch(36.81% 0.181 270.3)
XYZxyz(7.4539, 4.3787, 31.8984)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A9C #9C9321
analogous
#21679C #212A9C #56219C
triadic
#212A9C #9C212A #2A9C21
tetradic
#212A9C #9C2167 #9C9321 #219C56
square
#212A9C #9C2167 #9C9321 #219C56
split-complementary
#212A9C #9C5621 #679C21
monochromatic
#0C0F37 #161C69 #212A9C #2C38CF #5B65DC

Accessibility & contrast

On white

11.19
#212A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A9C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A9C#FFFFFF#000000##FFFFFF
##212A9C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212a9c;
/* rgb */ color: rgb(33, 42, 156);
/* oklch */ color: oklch(36.8% 0.181 270.3);
Tailwind
colors: {
  custom: {
    50: '#7364ba',
    500: '#212a9c',
    950: '#000000',
  },
}
SCSS
$custom: #212a9c;
$custom-light: #7364ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212a9c",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 235.61,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36814,
    "c": 0.18052,
    "h": 270.3
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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