#212978#212978

#212978 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.133 H 272.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#212978
RGBrgb(33, 41, 120)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 73%, 47%)
CMYKcmyk(72.5%, 65.8%, 0%, 52.9%)
CIE-LABlab(21.07, 25.13, -46.13)
CIE-LCHlch(21.07, 52.53, 298.58°)
OKLaboklab(32.97% 0.0053 -0.1332)
OKLCHoklch(32.97% 0.133 272.3)
XYZxyz(4.8092, 3.2648, 18.1424)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212978 #787021
analogous
#215478 #212978 #452178
triadic
#212978 #782129 #297821
tetradic
#212978 #782154 #787021 #217845
square
#212978 #782154 #787021 #217845
split-complementary
#212978 #784521 #547821
monochromatic
#070818 #141948 #212978 #2E39A8 #4753CC

Accessibility & contrast

On white

12.70
#212978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212978
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212978#FFFFFF#000000##FFFFFF
##2129781.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212978;
/* rgb */ color: rgb(33, 41, 120);
/* oklch */ color: oklch(33.0% 0.133 272.3);
Tailwind
colors: {
  custom: {
    50: '#6962a0',
    500: '#212978',
    950: '#000000',
  },
}
SCSS
$custom: #212978;
$custom-light: #6962a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212978",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 234.483,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32968,
    "c": 0.13328,
    "h": 272.3
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#212978
secondary
#ABA24A
accent
#D248E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212978

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

Preview Lab → · Contrast checker → · Palette generator →

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