#212A97#212A97

#212A97 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.174 H 270.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#212A97
RGBrgb(33, 42, 151)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 59%)
CMYKcmyk(78.1%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.36, 35.99, -60.14)
CIE-LCHlch(24.36, 70.09, 300.90°)
OKLaboklab(36.28% 0.0016 -0.1741)
OKLCHoklch(36.28% 0.174 270.5)
XYZxyz(7.0392, 4.2129, 29.7143)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A97 #978E21
analogous
#216597 #212A97 #532197
triadic
#212A97 #97212A #2A9721
tetradic
#212A97 #972165 #978E21 #219753
square
#212A97 #972165 #978E21 #219753
split-complementary
#212A97 #975321 #659721
monochromatic
#0B0E33 #161C65 #212A97 #2C38C9 #5862DA

Accessibility & contrast

On white

11.40
#212A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A97
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A97#FFFFFF#000000##FFFFFF
##212A971.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212a97;
/* rgb */ color: rgb(33, 42, 151);
/* oklch */ color: oklch(36.3% 0.174 270.5);
Tailwind
colors: {
  custom: {
    50: '#7164b7',
    500: '#212a97',
    950: '#000000',
  },
}
SCSS
$custom: #212a97;
$custom-light: #7164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212a97",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 235.424,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.17412,
    "h": 270.5
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A97

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

Preview Lab → · Contrast checker → · Palette generator →

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