#212B9E#212B9E

#212B9E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.182 H 270.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#212B9E
RGBrgb(33, 43, 158)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 62%)
CMYKcmyk(79.1%, 72.8%, 0%, 38%)
CIE-LABlab(25.32, 37.89, -62.85)
CIE-LCHlch(25.32, 73.38, 301.08°)
OKLaboklab(37.19% 0.0002 -0.182)
OKLCHoklch(37.19% 0.182 270.1)
XYZxyz(7.6605, 4.5188, 32.8096)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B9E #9E9421
analogous
#216A9E #212B9E #56219E
triadic
#212B9E #9E212B #2B9E21
tetradic
#212B9E #9E216A #9E9421 #219E56
square
#212B9E #9E216A #9E9421 #219E56
split-complementary
#212B9E #9E5621 #6A9E21
monochromatic
#0C0F39 #161D6B #212B9E #2C39D1 #5C67DD

Accessibility & contrast

On white

11.03
#212B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#212B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B9E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B9E#FFFFFF#000000##FFFFFF
##212B9E1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212b9e;
/* rgb */ color: rgb(33, 43, 158);
/* oklch */ color: oklch(37.2% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#7365bc',
    500: '#212b9e',
    950: '#000000',
  },
}
SCSS
$custom: #212b9e;
$custom-light: #7365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#212b9e",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 235.2,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37187,
    "c": 0.18201,
    "h": 270.1
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#212B9E
secondary
#C1B959
accent
#DB3FE8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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