#212478#212478

#212478 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.140 H 273.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#212478
RGBrgb(33, 36, 120)
HSLhsl(238, 57%, 30%)
HSVhsv(238, 73%, 47%)
CMYKcmyk(72.5%, 70%, 0%, 52.9%)
CIE-LABlab(19.80, 28.50, -48.21)
CIE-LCHlch(19.80, 56.01, 300.59°)
OKLaboklab(32.04% 0.009 -0.1393)
OKLCHoklch(32.04% 0.14 273.7)
XYZxyz(4.6471, 2.9407, 18.0884)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212478 #787521
analogous
#215078 #212478 #492178
triadic
#212478 #782124 #247821
tetradic
#212478 #782150 #787521 #217849
square
#212478 #782150 #787521 #217849
split-complementary
#212478 #784921 #507821
monochromatic
#070718 #141648 #212478 #2E32A8 #474CCC

Accessibility & contrast

On white

13.22
#212478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212478
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212478#FFFFFF#000000##FFFFFF
##2124781.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212478;
/* rgb */ color: rgb(33, 36, 120);
/* oklch */ color: oklch(32.0% 0.140 273.7);
Tailwind
colors: {
  custom: {
    50: '#6a5fa0',
    500: '#212478',
    950: '#000000',
  },
}
SCSS
$custom: #212478;
$custom-light: #6a5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#212478",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 237.931,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32041,
    "c": 0.13959,
    "h": 273.7
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#212478
secondary
#ABA84A
accent
#DB48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212478

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

Preview Lab → · Contrast checker → · Palette generator →

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