#212A78#212A78

#212A78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.132 H 271.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#212A78
RGBrgb(33, 42, 120)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 73%, 47%)
CMYKcmyk(72.5%, 65%, 0%, 52.9%)
CIE-LABlab(21.34, 24.44, -45.70)
CIE-LCHlch(21.34, 51.83, 298.14°)
OKLaboklab(33.16% 0.0045 -0.1319)
OKLCHoklch(33.16% 0.132 271.9)
XYZxyz(4.8442, 3.3349, 18.1541)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A78 #786F21
analogous
#215678 #212A78 #432178
triadic
#212A78 #78212A #2A7821
tetradic
#212A78 #782156 #786F21 #217843
square
#212A78 #782156 #786F21 #217843
split-complementary
#212A78 #784321 #567821
monochromatic
#070818 #141948 #212A78 #2E3BA8 #4755CC

Accessibility & contrast

On white

12.60
#212A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A78
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A78#FFFFFF#000000##FFFFFF
##212A781.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212a78;
/* rgb */ color: rgb(33, 42, 120);
/* oklch */ color: oklch(33.2% 0.132 271.9);
Tailwind
colors: {
  custom: {
    50: '#6963a0',
    500: '#212a78',
    950: '#000000',
  },
}
SCSS
$custom: #212a78;
$custom-light: #6963a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212a78",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 233.793,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33162,
    "c": 0.13199,
    "h": 271.9
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#212A78
secondary
#ABA14A
accent
#D048E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212A78

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

Preview Lab → · Contrast checker → · Palette generator →

#212A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva