#212C74#212C74

#212C74 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.124 H 271.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#212C74
RGBrgb(33, 44, 116)
HSLhsl(232, 56%, 29%)
HSVhsv(232, 72%, 45%)
CMYKcmyk(71.6%, 62.1%, 0%, 54.5%)
CIE-LABlab(21.52, 21.51, -42.84)
CIE-LCHlch(21.52, 47.94, 296.66°)
OKLaboklab(33.19% 0.0029 -0.1235)
OKLCHoklch(33.19% 0.124 271.3)
XYZxyz(4.6792, 3.3852, 16.9264)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C74 #746921
analogous
#215674 #212C74 #402174
triadic
#212C74 #74212C #2C7421
tetradic
#212C74 #742156 #746921 #217440
square
#212C74 #742156 #746921 #217440
split-complementary
#212C74 #744021 #567421
monochromatic
#070918 #131A44 #212C74 #2F3EA4 #4557CA

Accessibility & contrast

On white

12.52
#212C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C74
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C74#FFFFFF#000000##FFFFFF
##212C741.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212c74;
/* rgb */ color: rgb(33, 44, 116);
/* oklch */ color: oklch(33.2% 0.124 271.3);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#212c74',
    950: '#000000',
  },
}
SCSS
$custom: #212c74;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#212c74",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 232.048,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.12352,
    "h": 271.3
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#212C74
secondary
#A79B49
accent
#CB49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C74

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

Preview Lab → · Contrast checker → · Palette generator →

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