#212A95#212A95

#212A95 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.172 H 270.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#212A95
RGBrgb(33, 42, 149)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 58%)
CMYKcmyk(77.9%, 71.8%, 0%, 41.6%)
CIE-LABlab(24.16, 35.27, -59.25)
CIE-LCHlch(24.16, 68.95, 300.77°)
OKLaboklab(36.07% 0.0018 -0.1715)
OKLCHoklch(36.07% 0.172 270.6)
XYZxyz(6.8781, 4.1484, 28.8662)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A95 #958C21
analogous
#216495 #212A95 #522195
triadic
#212A95 #95212A #2A9521
tetradic
#212A95 #952164 #958C21 #219552
square
#212A95 #952164 #958C21 #219552
split-complementary
#212A95 #955221 #649521
monochromatic
#0B0E31 #161C63 #212A95 #2C38C7 #5761DA

Accessibility & contrast

On white

11.48
#212A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A95
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A95#FFFFFF#000000##FFFFFF
##212A951.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212a95;
/* rgb */ color: rgb(33, 42, 149);
/* oklch */ color: oklch(36.1% 0.172 270.6);
Tailwind
colors: {
  custom: {
    50: '#7164b5',
    500: '#212a95',
    950: '#000000',
  },
}
SCSS
$custom: #212a95;
$custom-light: #7164b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212a95",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 235.345,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36072,
    "c": 0.17153,
    "h": 270.6
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#212A95
secondary
#BEB554
accent
#DA41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A95

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

Preview Lab → · Contrast checker → · Palette generator →

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