#212C8A#212C8A

#212C8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.155 H 270.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#212C8A
RGBrgb(33, 44, 138)
HSLhsl(234, 61%, 34%)
HSVhsv(234, 76%, 54%)
CMYKcmyk(76.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(23.54, 29.93, -53.45)
CIE-LCHlch(23.54, 61.26, 299.24°)
OKLaboklab(35.29% 0.0019 -0.1546)
OKLCHoklch(35.29% 0.155 270.7)
XYZxyz(6.1138, 3.9590, 24.4818)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8A #8A7F21
analogous
#21608A #212C8A #4A218A
triadic
#212C8A #8A212C #2C8A21
tetradic
#212C8A #8A2160 #8A7F21 #218A4A
square
#212C8A #8A2160 #8A7F21 #218A4A
split-complementary
#212C8A #8A4A21 #608A21
monochromatic
#090D27 #151C59 #212C8A #2D3CBB #505ED5

Accessibility & contrast

On white

11.72
#212C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8A#FFFFFF#000000##FFFFFF
##212C8A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212c8a;
/* rgb */ color: rgb(33, 44, 138);
/* oklch */ color: oklch(35.3% 0.155 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e65ad',
    500: '#212c8a',
    950: '#000000',
  },
}
SCSS
$custom: #212c8a;
$custom-light: #6e65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8a",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 233.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3529,
    "c": 0.1546,
    "h": 270.7
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#212C8A
secondary
#B9AD4E
accent
#D443E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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