#212C9A#212C9A

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

Color values

HEX#212C9A
RGBrgb(33, 44, 154)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 60%)
CMYKcmyk(78.6%, 71.4%, 0%, 39.6%)
CIE-LABlab(25.13, 35.83, -60.72)
CIE-LCHlch(25.13, 70.50, 300.54°)
OKLaboklab(36.93% 0.0002 -0.1758)
OKLCHoklch(36.93% 0.176 270.1)
XYZxyz(7.3586, 4.4570, 31.0380)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C9A #9A8F21
analogous
#21699A #212C9A #52219A
triadic
#212C9A #9A212C #2C9A21
tetradic
#212C9A #9A2169 #9A8F21 #219A52
square
#212C9A #9A2169 #9A8F21 #219A52
split-complementary
#212C9A #9A5221 #699A21
monochromatic
#0B0F35 #161E68 #212C9A #2C3ACC #5A66DC

Accessibility & contrast

On white

11.10
#212C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C9A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C9A#FFFFFF#000000##FFFFFF
##212C9A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212c9a;
/* rgb */ color: rgb(33, 44, 154);
/* oklch */ color: oklch(36.9% 0.176 270.1);
Tailwind
colors: {
  custom: {
    50: '#7266b9',
    500: '#212c9a',
    950: '#000000',
  },
}
SCSS
$custom: #212c9a;
$custom-light: #7266b9;
$custom-dark: #000000;
JSON
{
  "hex": "#212c9a",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 234.545,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.1758,
    "h": 270.1
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#212C9A
secondary
#C0B657
accent
#D840E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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