#212778#212778

#212778 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.136 H 272.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#212778
RGBrgb(33, 39, 120)
HSLhsl(236, 57%, 30%)
HSVhsv(236, 73%, 47%)
CMYKcmyk(72.5%, 67.5%, 0%, 52.9%)
CIE-LABlab(20.56, 26.49, -46.98)
CIE-LCHlch(20.56, 53.93, 299.42°)
OKLaboklab(32.59% 0.0068 -0.1357)
OKLCHoklch(32.59% 0.136 272.9)
XYZxyz(4.7417, 3.1300, 18.1199)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212778 #787221
analogous
#215378 #212778 #462178
triadic
#212778 #782127 #277821
tetradic
#212778 #782153 #787221 #217846
square
#212778 #782153 #787221 #217846
split-complementary
#212778 #784621 #537821
monochromatic
#070818 #141748 #212778 #2E37A8 #4750CC

Accessibility & contrast

On white

12.92
#212778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212778
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212778#FFFFFF#000000##FFFFFF
##2127781.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212778;
/* rgb */ color: rgb(33, 39, 120);
/* oklch */ color: oklch(32.6% 0.136 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a61a0',
    500: '#212778',
    950: '#000000',
  },
}
SCSS
$custom: #212778;
$custom-light: #6a61a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212778",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 235.862,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32589,
    "c": 0.13585,
    "h": 272.9
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#212778
secondary
#ABA44A
accent
#D648E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212778

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

Preview Lab → · Contrast checker → · Palette generator →

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