#212878#212878

#212878 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.135 H 272.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#212878
RGBrgb(33, 40, 120)
HSLhsl(235, 57%, 30%)
HSVhsv(235, 73%, 47%)
CMYKcmyk(72.5%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.81, 25.81, -46.56)
CIE-LCHlch(20.81, 53.23, 299.00°)
OKLaboklab(32.78% 0.006 -0.1344)
OKLCHoklch(32.78% 0.135 272.6)
XYZxyz(4.7750, 3.1965, 18.1310)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212878 #787121
analogous
#215478 #212878 #452178
triadic
#212878 #782128 #287821
tetradic
#212878 #782154 #787121 #217845
square
#212878 #782154 #787121 #217845
split-complementary
#212878 #784521 #547821
monochromatic
#070818 #141848 #212878 #2E38A8 #4752CC

Accessibility & contrast

On white

12.81
#212878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212878
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212878#FFFFFF#000000##FFFFFF
##2128781.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212878;
/* rgb */ color: rgb(33, 40, 120);
/* oklch */ color: oklch(32.8% 0.135 272.6);
Tailwind
colors: {
  custom: {
    50: '#6962a0',
    500: '#212878',
    950: '#000000',
  },
}
SCSS
$custom: #212878;
$custom-light: #6962a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212878",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 235.172,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32777,
    "c": 0.13458,
    "h": 272.6
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#212878
secondary
#ABA34A
accent
#D448E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212878

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

Preview Lab → · Contrast checker → · Palette generator →

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