#212B97#212B97

#212B97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.173 H 270.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#212B97
RGBrgb(33, 43, 151)
HSLhsl(235, 64%, 36%)
HSVhsv(235, 78%, 59%)
CMYKcmyk(78.1%, 71.5%, 0%, 40.8%)
CIE-LABlab(24.59, 35.37, -59.76)
CIE-LCHlch(24.59, 69.44, 300.62°)
OKLaboklab(36.45% 0.0011 -0.173)
OKLCHoklch(36.45% 0.173 270.4)
XYZxyz(7.0751, 4.2847, 29.7263)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B97 #978D21
analogous
#216697 #212B97 #522197
triadic
#212B97 #97212B #2B9721
tetradic
#212B97 #972166 #978D21 #219752
square
#212B97 #972166 #978D21 #219752
split-complementary
#212B97 #975221 #669721
monochromatic
#0B0E33 #161D65 #212B97 #2C39C9 #5863DA

Accessibility & contrast

On white

11.31
#212B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B97
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B97#FFFFFF#000000##FFFFFF
##212B971.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212b97;
/* rgb */ color: rgb(33, 43, 151);
/* oklch */ color: oklch(36.4% 0.173 270.4);
Tailwind
colors: {
  custom: {
    50: '#7165b7',
    500: '#212b97',
    950: '#000000',
  },
}
SCSS
$custom: #212b97;
$custom-light: #7165b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212b97",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 234.915,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36447,
    "c": 0.17302,
    "h": 270.4
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212B97

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

Preview Lab → · Contrast checker → · Palette generator →

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