#212A91#212A91

#212A91 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.166 H 270.8°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#212A91
RGBrgb(33, 42, 145)
HSLhsl(235, 63%, 35%)
HSVhsv(235, 77%, 57%)
CMYKcmyk(77.2%, 71%, 0%, 43.1%)
CIE-LABlab(23.75, 33.82, -57.45)
CIE-LCHlch(23.75, 66.67, 300.48°)
OKLaboklab(35.65% 0.0023 -0.1663)
OKLCHoklch(35.65% 0.166 270.8)
XYZxyz(6.5643, 4.0229, 27.2131)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A91 #918821
analogous
#216291 #212A91 #502191
triadic
#212A91 #91212A #2A9121
tetradic
#212A91 #912162 #918821 #219150
square
#212A91 #912162 #918821 #219150
split-complementary
#212A91 #915021 #629121
monochromatic
#0A0D2D #161C5F #212A91 #2C38C3 #545FD8

Accessibility & contrast

On white

11.64
#212A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A91
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A91#FFFFFF#000000##FFFFFF
##212A911.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212a91;
/* rgb */ color: rgb(33, 42, 145);
/* oklch */ color: oklch(35.7% 0.166 270.8);
Tailwind
colors: {
  custom: {
    50: '#7064b2',
    500: '#212a91',
    950: '#000000',
  },
}
SCSS
$custom: #212a91;
$custom-light: #7064b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212a91",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 235.179,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.1663,
    "h": 270.8
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#212A91
secondary
#BCB352
accent
#D942E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A91

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

Preview Lab → · Contrast checker → · Palette generator →

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