#212E77#212E77

#212E77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.125 H 270.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#212E77
RGBrgb(33, 46, 119)
HSLhsl(231, 57%, 30%)
HSVhsv(231, 72%, 47%)
CMYKcmyk(72.3%, 61.3%, 0%, 53.3%)
CIE-LABlab(22.33, 21.27, -43.44)
CIE-LCHlch(22.33, 48.37, 296.09°)
OKLaboklab(33.87% 0.0012 -0.1252)
OKLCHoklch(33.87% 0.125 270.5)
XYZxyz(4.9328, 3.6088, 17.8858)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E77 #776A21
analogous
#215977 #212E77 #3F2177
triadic
#212E77 #77212E #2E7721
tetradic
#212E77 #772159 #776A21 #21773F
square
#212E77 #772159 #776A21 #21773F
split-complementary
#212E77 #773F21 #597721
monochromatic
#070918 #141B47 #212E77 #2E41A7 #475BCC

Accessibility & contrast

On white

12.20
#212E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E77
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E77#FFFFFF#000000##FFFFFF
##212E771.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212e77;
/* rgb */ color: rgb(33, 46, 119);
/* oklch */ color: oklch(33.9% 0.125 270.5);
Tailwind
colors: {
  custom: {
    50: '#69669f',
    500: '#212e77',
    950: '#000000',
  },
}
SCSS
$custom: #212e77;
$custom-light: #69669f;
$custom-dark: #000000;
JSON
{
  "hex": "#212e77",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 230.93,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33871,
    "c": 0.12524,
    "h": 270.5
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#212E77
secondary
#AA9C4A
accent
#C948E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212E77

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

Preview Lab → · Contrast checker → · Palette generator →

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