#212C71#212C71

#212C71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.119 H 271.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#212C71
RGBrgb(33, 44, 113)
HSLhsl(232, 55%, 29%)
HSVhsv(232, 71%, 44%)
CMYKcmyk(70.8%, 61.1%, 0%, 55.7%)
CIE-LABlab(21.27, 20.34, -41.33)
CIE-LCHlch(21.27, 46.06, 296.20°)
OKLaboklab(32.92% 0.0029 -0.119)
OKLCHoklch(32.92% 0.119 271.4)
XYZxyz(4.5075, 3.3165, 16.0222)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C71 #716621
analogous
#215471 #212C71 #3E2171
triadic
#212C71 #71212C #2C7121
tetradic
#212C71 #712154 #716621 #21713E
square
#212C71 #712154 #716621 #21713E
split-complementary
#212C71 #713E21 #547121
monochromatic
#070918 #131A42 #212C71 #2F3EA0 #4456C8

Accessibility & contrast

On white

12.62
#212C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C71
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C71#FFFFFF#000000##FFFFFF
##212C711.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212c71;
/* rgb */ color: rgb(33, 44, 113);
/* oklch */ color: oklch(32.9% 0.119 271.4);
Tailwind
colors: {
  custom: {
    50: '#67649a',
    500: '#212c71',
    950: '#000000',
  },
}
SCSS
$custom: #212c71;
$custom-light: #67649a;
$custom-dark: #000000;
JSON
{
  "hex": "#212c71",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 231.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.11908,
    "h": 271.4
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#212C71
secondary
#A59849
accent
#CA4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C71

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

Preview Lab → · Contrast checker → · Palette generator →

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