#212C94#212C94

#212C94 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.168 H 270.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#212C94
RGBrgb(33, 44, 148)
HSLhsl(234, 64%, 35%)
HSVhsv(234, 78%, 58%)
CMYKcmyk(77.7%, 70.3%, 0%, 42%)
CIE-LABlab(24.52, 33.64, -58.03)
CIE-LCHlch(24.52, 67.08, 300.10°)
OKLaboklab(36.3% 0.0009 -0.168)
OKLCHoklch(36.3% 0.168 270.3)
XYZxyz(6.8714, 4.2621, 28.4718)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C94 #948921
analogous
#216594 #212C94 #4F2194
triadic
#212C94 #94212C #2C9421
tetradic
#212C94 #942165 #948921 #21944F
square
#212C94 #942165 #948921 #21944F
split-complementary
#212C94 #944F21 #659421
monochromatic
#0B0E30 #161D62 #212C94 #2C3BC6 #5663D9

Accessibility & contrast

On white

11.34
#212C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#212C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C94
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C94#FFFFFF#000000##FFFFFF
##212C941.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212c94;
/* rgb */ color: rgb(33, 44, 148);
/* oklch */ color: oklch(36.3% 0.168 270.3);
Tailwind
colors: {
  custom: {
    50: '#7065b4',
    500: '#212c94',
    950: '#000000',
  },
}
SCSS
$custom: #212c94;
$custom-light: #7065b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212c94",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 234.261,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.16798,
    "h": 270.3
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#212C94
secondary
#BDB354
accent
#D741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C94

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

Preview Lab → · Contrast checker → · Palette generator →

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