#212C77#212C77

#212C77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.128 H 271.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#212C77
RGBrgb(33, 44, 119)
HSLhsl(232, 57%, 30%)
HSVhsv(232, 72%, 47%)
CMYKcmyk(72.3%, 63%, 0%, 53.3%)
CIE-LABlab(21.79, 22.67, -44.33)
CIE-LCHlch(21.79, 49.79, 297.08°)
OKLaboklab(33.46% 0.0029 -0.1279)
OKLCHoklch(33.46% 0.128 271.3)
XYZxyz(4.8565, 3.4561, 17.8603)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C77 #776C21
analogous
#215777 #212C77 #412177
triadic
#212C77 #77212C #2C7721
tetradic
#212C77 #772157 #776C21 #217741
square
#212C77 #772157 #776C21 #217741
split-complementary
#212C77 #774121 #577721
monochromatic
#070918 #141A47 #212C77 #2E3EA7 #4758CC

Accessibility & contrast

On white

12.42
#212C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C77
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C77#FFFFFF#000000##FFFFFF
##212C771.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212c77;
/* rgb */ color: rgb(33, 44, 119);
/* oklch */ color: oklch(33.5% 0.128 271.3);
Tailwind
colors: {
  custom: {
    50: '#69659f',
    500: '#212c77',
    950: '#000000',
  },
}
SCSS
$custom: #212c77;
$custom-light: #69659f;
$custom-dark: #000000;
JSON
{
  "hex": "#212c77",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 232.326,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33464,
    "c": 0.12791,
    "h": 271.3
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#212C77
secondary
#AA9E4A
accent
#CC48E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #212C77

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

Preview Lab → · Contrast checker → · Palette generator →

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