#212C72#212C72

#212C72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.121 H 271.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#212C72
RGBrgb(33, 44, 114)
HSLhsl(232, 55%, 29%)
HSVhsv(232, 71%, 45%)
CMYKcmyk(71.1%, 61.4%, 0%, 55.3%)
CIE-LABlab(21.35, 20.73, -41.84)
CIE-LCHlch(21.35, 46.69, 296.36°)
OKLaboklab(33.01% 0.0029 -0.1205)
OKLCHoklch(33.01% 0.121 271.4)
XYZxyz(4.5641, 3.3392, 16.3203)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C72 #726721
analogous
#215572 #212C72 #3F2172
triadic
#212C72 #72212C #2C7221
tetradic
#212C72 #722155 #726721 #21723F
square
#212C72 #722155 #726721 #21723F
split-complementary
#212C72 #723F21 #557221
monochromatic
#070918 #131A43 #212C72 #2F3EA1 #4456C9

Accessibility & contrast

On white

12.59
#212C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C72
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C72#FFFFFF#000000##FFFFFF
##212C721.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212c72;
/* rgb */ color: rgb(33, 44, 114);
/* oklch */ color: oklch(33.0% 0.121 271.4);
Tailwind
colors: {
  custom: {
    50: '#68659b',
    500: '#212c72',
    950: '#000000',
  },
}
SCSS
$custom: #212c72;
$custom-light: #68659b;
$custom-dark: #000000;
JSON
{
  "hex": "#212c72",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 231.852,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33009,
    "c": 0.12057,
    "h": 271.4
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#212C72
secondary
#A59949
accent
#CA49DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C72

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

Preview Lab → · Contrast checker → · Palette generator →

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