#212E78#212E78

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

Color values

HEX#212E78
RGBrgb(33, 46, 120)
HSLhsl(231, 57%, 30%)
HSVhsv(231, 73%, 47%)
CMYKcmyk(72.5%, 61.7%, 0%, 52.9%)
CIE-LABlab(22.42, 21.66, -43.94)
CIE-LCHlch(22.42, 48.99, 296.25°)
OKLaboklab(33.96% 0.0012 -0.1267)
OKLCHoklch(33.96% 0.127 270.5)
XYZxyz(4.9932, 3.6329, 18.2037)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E78 #786B21
analogous
#215A78 #212E78 #3F2178
triadic
#212E78 #78212E #2E7821
tetradic
#212E78 #78215A #786B21 #21783F
square
#212E78 #78215A #786B21 #21783F
split-complementary
#212E78 #783F21 #5A7821
monochromatic
#070918 #141C48 #212E78 #2E40A8 #475BCC

Accessibility & contrast

On white

12.16
#212E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E78
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E78#FFFFFF#000000##FFFFFF
##212E781.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212e78;
/* rgb */ color: rgb(33, 46, 120);
/* oklch */ color: oklch(34.0% 0.127 270.5);
Tailwind
colors: {
  custom: {
    50: '#6966a0',
    500: '#212e78',
    950: '#000000',
  },
}
SCSS
$custom: #212e78;
$custom-light: #6966a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212e78",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 231.034,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.1267,
    "h": 270.5
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#212E78
secondary
#AB9D4A
accent
#C948E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #212E78

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

Preview Lab → · Contrast checker → · Palette generator →

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