#212C9C#212C9C

#212C9C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.178 H 270.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#212C9C
RGBrgb(33, 44, 156)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 61%)
CMYKcmyk(78.8%, 71.8%, 0%, 38.8%)
CIE-LABlab(25.33, 36.55, -61.60)
CIE-LCHlch(25.33, 71.63, 300.68°)
OKLaboklab(37.14% 0 -0.1784)
OKLCHoklch(37.14% 0.178 270)
XYZxyz(7.5266, 4.5242, 31.9226)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C9C #9C9121
analogous
#216A9C #212C9C #54219C
triadic
#212C9C #9C212C #2C9C21
tetradic
#212C9C #9C216A #9C9121 #219C54
square
#212C9C #9C216A #9C9121 #219C54
split-complementary
#212C9C #9C5421 #6A9C21
monochromatic
#0C1037 #161E69 #212C9C #2C3ACF #5B67DC

Accessibility & contrast

On white

11.02
#212C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#212C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C9C
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C9C#FFFFFF#000000##FFFFFF
##212C9C1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212c9c;
/* rgb */ color: rgb(33, 44, 156);
/* oklch */ color: oklch(37.1% 0.178 270.0);
Tailwind
colors: {
  custom: {
    50: '#7266ba',
    500: '#212c9c',
    950: '#000000',
  },
}
SCSS
$custom: #212c9c;
$custom-light: #7266ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212c9c",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 234.634,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37136,
    "c": 0.17838,
    "h": 270
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#212C9C
secondary
#C1B758
accent
#D940E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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