#212976#212976

#212976 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.130 H 272.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#212976
RGBrgb(33, 41, 118)
HSLhsl(234, 56%, 30%)
HSVhsv(234, 72%, 46%)
CMYKcmyk(72%, 65.3%, 0%, 53.7%)
CIE-LABlab(20.89, 24.36, -45.15)
CIE-LCHlch(20.89, 51.31, 298.35°)
OKLaboklab(32.78% 0.0054 -0.1303)
OKLCHoklch(32.78% 0.13 272.4)
XYZxyz(4.6891, 3.2168, 17.5098)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212976 #766E21
analogous
#215476 #212976 #442176
triadic
#212976 #762129 #297621
tetradic
#212976 #762154 #766E21 #217644
square
#212976 #762154 #766E21 #217644
split-complementary
#212976 #764421 #547621
monochromatic
#070818 #141846 #212976 #2E3AA6 #4653CB

Accessibility & contrast

On white

12.78
#212976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212976
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212976#FFFFFF#000000##FFFFFF
##2129761.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212976;
/* rgb */ color: rgb(33, 41, 118);
/* oklch */ color: oklch(32.8% 0.130 272.4);
Tailwind
colors: {
  custom: {
    50: '#69629e',
    500: '#212976',
    950: '#000000',
  },
}
SCSS
$custom: #212976;
$custom-light: #69629e;
$custom-dark: #000000;
JSON
{
  "hex": "#212976",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 234.353,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32777,
    "c": 0.13042,
    "h": 272.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#212976
secondary
#A9A04A
accent
#D148E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212976

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

Preview Lab → · Contrast checker → · Palette generator →

#212976 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva