#212E76#212E76

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

Color values

HEX#212E76
RGBrgb(33, 46, 118)
HSLhsl(231, 56%, 30%)
HSVhsv(231, 72%, 46%)
CMYKcmyk(72%, 61%, 0%, 53.7%)
CIE-LABlab(22.25, 20.88, -42.94)
CIE-LCHlch(22.25, 47.75, 295.93°)
OKLaboklab(33.78% 0.0011 -0.1238)
OKLCHoklch(33.78% 0.124 270.5)
XYZxyz(4.8731, 3.5849, 17.5712)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E76 #766921
analogous
#215876 #212E76 #3F2176
triadic
#212E76 #76212E #2E7621
tetradic
#212E76 #762158 #766921 #21763F
square
#212E76 #762158 #766921 #21763F
split-complementary
#212E76 #763F21 #587621
monochromatic
#070918 #141B46 #212E76 #2E41A6 #465ACB

Accessibility & contrast

On white

12.23
#212E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E76
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E76#FFFFFF#000000##FFFFFF
##212E761.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212e76;
/* rgb */ color: rgb(33, 46, 118);
/* oklch */ color: oklch(33.8% 0.124 270.5);
Tailwind
colors: {
  custom: {
    50: '#68669e',
    500: '#212e76',
    950: '#000000',
  },
}
SCSS
$custom: #212e76;
$custom-light: #68669e;
$custom-dark: #000000;
JSON
{
  "hex": "#212e76",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 230.824,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33781,
    "c": 0.12377,
    "h": 270.5
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#212E76
secondary
#A99B4A
accent
#C848E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212E76

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

Preview Lab → · Contrast checker → · Palette generator →

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