#212974#212974

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

Color values

HEX#212974
RGBrgb(33, 41, 116)
HSLhsl(234, 56%, 29%)
HSVhsv(234, 72%, 45%)
CMYKcmyk(71.6%, 64.7%, 0%, 54.5%)
CIE-LABlab(20.71, 23.60, -44.17)
CIE-LCHlch(20.71, 50.08, 298.11°)
OKLaboklab(32.59% 0.0055 -0.1274)
OKLCHoklch(32.59% 0.128 272.4)
XYZxyz(4.5715, 3.1697, 16.8905)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212974 #746C21
analogous
#215374 #212974 #432174
triadic
#212974 #742129 #297421
tetradic
#212974 #742153 #746C21 #217443
square
#212974 #742153 #746C21 #217443
split-complementary
#212974 #744321 #537421
monochromatic
#070818 #131844 #212974 #2F3AA4 #4552CA

Accessibility & contrast

On white

12.85
#212974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212974
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212974#FFFFFF#000000##FFFFFF
##2129741.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212974;
/* rgb */ color: rgb(33, 41, 116);
/* oklch */ color: oklch(32.6% 0.128 272.4);
Tailwind
colors: {
  custom: {
    50: '#68629d',
    500: '#212974',
    950: '#000000',
  },
}
SCSS
$custom: #212974;
$custom-light: #68629d;
$custom-dark: #000000;
JSON
{
  "hex": "#212974",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 234.217,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32588,
    "c": 0.12754,
    "h": 272.4
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#212974
secondary
#A79E49
accent
#D149DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212974

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

Preview Lab → · Contrast checker → · Palette generator →

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