#212779#212779

#212779 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.137 H 272.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#212779
RGBrgb(33, 39, 121)
HSLhsl(236, 57%, 30%)
HSVhsv(236, 73%, 47%)
CMYKcmyk(72.7%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.65, 26.87, -47.46)
CIE-LCHlch(20.65, 54.54, 299.51°)
OKLaboklab(32.69% 0.0067 -0.1371)
OKLCHoklch(32.69% 0.137 272.8)
XYZxyz(4.8028, 3.1544, 18.4412)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212779 #797321
analogous
#215379 #212779 #472179
triadic
#212779 #792127 #277921
tetradic
#212779 #792153 #797321 #217947
square
#212779 #792153 #797321 #217947
split-complementary
#212779 #794721 #537921
monochromatic
#070819 #141849 #212779 #2E36A9 #4751CD

Accessibility & contrast

On white

12.88
#212779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212779
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212779#FFFFFF#000000##FFFFFF
##2127791.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212779;
/* rgb */ color: rgb(33, 39, 121);
/* oklch */ color: oklch(32.7% 0.137 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a61a1',
    500: '#212779',
    950: '#000000',
  },
}
SCSS
$custom: #212779;
$custom-light: #6a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212779",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 235.909,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32687,
    "c": 0.13725,
    "h": 272.8
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#212779
secondary
#ACA54A
accent
#D647E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212779

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

Preview Lab → · Contrast checker → · Palette generator →

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