#212B9A#212B9A

#212B9A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.177 H 270.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#212B9A
RGBrgb(33, 43, 154)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 60%)
CMYKcmyk(78.6%, 72.1%, 0%, 39.6%)
CIE-LABlab(24.90, 36.45, -61.09)
CIE-LCHlch(24.90, 71.14, 300.82°)
OKLaboklab(36.76% 0.0007 -0.1769)
OKLCHoklch(36.76% 0.177 270.2)
XYZxyz(7.3218, 4.3834, 31.0258)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B9A #9A9021
analogous
#21689A #212B9A #54219A
triadic
#212B9A #9A212B #2B9A21
tetradic
#212B9A #9A2168 #9A9021 #219A54
square
#212B9A #9A2168 #9A9021 #219A54
split-complementary
#212B9A #9A5421 #689A21
monochromatic
#0B0F35 #161D68 #212B9A #2C39CC #5A65DC

Accessibility & contrast

On white

11.19
#212B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#212B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B9A
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B9A#FFFFFF#000000##FFFFFF
##212B9A1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212b9a;
/* rgb */ color: rgb(33, 43, 154);
/* oklch */ color: oklch(36.8% 0.177 270.2);
Tailwind
colors: {
  custom: {
    50: '#7265b9',
    500: '#212b9a',
    950: '#000000',
  },
}
SCSS
$custom: #212b9a;
$custom-light: #7265b9;
$custom-dark: #000000;
JSON
{
  "hex": "#212b9a",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 235.041,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36762,
    "c": 0.17689,
    "h": 270.2
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#212B9A
secondary
#C0B757
accent
#DA40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #212B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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