#212A9E#212A9E

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

Color values

HEX#212A9E
RGBrgb(33, 42, 158)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 62%)
CMYKcmyk(79.1%, 73.4%, 0%, 38%)
CIE-LABlab(25.10, 38.50, -63.21)
CIE-LCHlch(25.10, 74.01, 301.34°)
OKLaboklab(37.03% 0.0006 -0.1831)
OKLCHoklch(37.03% 0.183 270.2)
XYZxyz(7.6246, 4.4470, 32.7976)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A9E #9E9521
analogous
#21699E #212A9E #57219E
triadic
#212A9E #9E212A #2A9E21
tetradic
#212A9E #9E2169 #9E9521 #219E57
square
#212A9E #9E2169 #9E9521 #219E57
split-complementary
#212A9E #9E5721 #699E21
monochromatic
#0C0F39 #161D6B #212A9E #2C37D1 #5C66DD

Accessibility & contrast

On white

11.11
#212A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A9E
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A9E#FFFFFF#000000##FFFFFF
##212A9E1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212a9e;
/* rgb */ color: rgb(33, 42, 158);
/* oklch */ color: oklch(37.0% 0.183 270.2);
Tailwind
colors: {
  custom: {
    50: '#7364bc',
    500: '#212a9e',
    950: '#000000',
  },
}
SCSS
$custom: #212a9e;
$custom-light: #7364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#212a9e",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 235.68,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37029,
    "c": 0.18306,
    "h": 270.2
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#212A9E
secondary
#C1BA59
accent
#DC3FE8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #212A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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