#212E79#212E79

#212E79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.128 H 270.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#212E79
RGBrgb(33, 46, 121)
HSLhsl(231, 57%, 30%)
HSVhsv(231, 73%, 47%)
CMYKcmyk(72.7%, 62%, 0%, 52.5%)
CIE-LABlab(22.50, 22.05, -44.44)
CIE-LCHlch(22.50, 49.61, 296.40°)
OKLaboklab(34.05% 0.0012 -0.1281)
OKLCHoklch(34.05% 0.128 270.5)
XYZxyz(5.0542, 3.6573, 18.5250)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E79 #796C21
analogous
#215A79 #212E79 #402179
triadic
#212E79 #79212E #2E7921
tetradic
#212E79 #79215A #796C21 #217940
square
#212E79 #79215A #796C21 #217940
split-complementary
#212E79 #794021 #5A7921
monochromatic
#070919 #141C49 #212E79 #2E40A9 #475BCD

Accessibility & contrast

On white

12.13
#212E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E79
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E79#FFFFFF#000000##FFFFFF
##212E791.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212e79;
/* rgb */ color: rgb(33, 46, 121);
/* oklch */ color: oklch(34.1% 0.128 270.5);
Tailwind
colors: {
  custom: {
    50: '#6966a0',
    500: '#212e79',
    950: '#000000',
  },
}
SCSS
$custom: #212e79;
$custom-light: #6966a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212e79",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 231.136,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34052,
    "c": 0.12816,
    "h": 270.5
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#212E79
secondary
#AC9E4A
accent
#CA47E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #212E79

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

Preview Lab → · Contrast checker → · Palette generator →

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