#212D79#212D79

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

Color values

HEX#212D79
RGBrgb(33, 45, 121)
HSLhsl(232, 57%, 30%)
HSVhsv(232, 73%, 47%)
CMYKcmyk(72.7%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.23, 22.75, -44.88)
CIE-LCHlch(22.23, 50.32, 296.88°)
OKLaboklab(33.85% 0.002 -0.1295)
OKLCHoklch(33.85% 0.129 270.9)
XYZxyz(5.0156, 3.5801, 18.5122)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D79 #796D21
analogous
#215979 #212D79 #412179
triadic
#212D79 #79212D #2D7921
tetradic
#212D79 #792159 #796D21 #217941
square
#212D79 #792159 #796D21 #217941
split-complementary
#212D79 #794121 #597921
monochromatic
#070919 #141B49 #212D79 #2E3FA9 #475ACD

Accessibility & contrast

On white

12.24
#212D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212D79
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D79#FFFFFF#000000##FFFFFF
##212D791.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212d79;
/* rgb */ color: rgb(33, 45, 121);
/* oklch */ color: oklch(33.8% 0.129 270.9);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#212d79',
    950: '#000000',
  },
}
SCSS
$custom: #212d79;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212d79",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 231.818,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33849,
    "c": 0.12949,
    "h": 270.9
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#212D79
secondary
#AC9F4A
accent
#CC47E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #212D79

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

Preview Lab → · Contrast checker → · Palette generator →

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