#212A79#212A79

#212A79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.133 H 271.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#212A79
RGBrgb(33, 42, 121)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 73%, 47%)
CMYKcmyk(72.7%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.43, 24.82, -46.19)
CIE-LCHlch(21.43, 52.44, 298.25°)
OKLaboklab(33.26% 0.0044 -0.1333)
OKLCHoklch(33.26% 0.133 271.9)
XYZxyz(4.9052, 3.3593, 18.4753)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A79 #797021
analogous
#215679 #212A79 #442179
triadic
#212A79 #79212A #2A7921
tetradic
#212A79 #792156 #797021 #217944
square
#212A79 #792156 #797021 #217944
split-complementary
#212A79 #794421 #567921
monochromatic
#070919 #141949 #212A79 #2E3BA9 #4755CD

Accessibility & contrast

On white

12.56
#212A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A79
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A79#FFFFFF#000000##FFFFFF
##212A791.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212a79;
/* rgb */ color: rgb(33, 42, 121);
/* oklch */ color: oklch(33.3% 0.133 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a63a0',
    500: '#212a79',
    950: '#000000',
  },
}
SCSS
$custom: #212a79;
$custom-light: #6a63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212a79",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 233.864,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.13342,
    "h": 271.9
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#212A79
secondary
#ACA24A
accent
#D147E0
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212A79

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

Preview Lab → · Contrast checker → · Palette generator →

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