#212876#212876

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

Color values

HEX#212876
RGBrgb(33, 40, 118)
HSLhsl(235, 56%, 30%)
HSVhsv(235, 72%, 46%)
CMYKcmyk(72%, 66.1%, 0%, 53.7%)
CIE-LABlab(20.63, 25.05, -45.58)
CIE-LCHlch(20.63, 52.01, 298.79°)
OKLaboklab(32.58% 0.0062 -0.1316)
OKLCHoklch(32.58% 0.132 272.7)
XYZxyz(4.6549, 3.1485, 17.4984)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212876 #766F21
analogous
#215376 #212876 #452176
triadic
#212876 #762128 #287621
tetradic
#212876 #762153 #766F21 #217645
square
#212876 #762153 #766F21 #217645
split-complementary
#212876 #764521 #537621
monochromatic
#070818 #141846 #212876 #2E38A6 #4651CB

Accessibility & contrast

On white

12.89
#212876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212876
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212876#FFFFFF#000000##FFFFFF
##2128761.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212876;
/* rgb */ color: rgb(33, 40, 118);
/* oklch */ color: oklch(32.6% 0.132 272.7);
Tailwind
colors: {
  custom: {
    50: '#69629e',
    500: '#212876',
    950: '#000000',
  },
}
SCSS
$custom: #212876;
$custom-light: #69629e;
$custom-dark: #000000;
JSON
{
  "hex": "#212876",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 235.059,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32584,
    "c": 0.13172,
    "h": 272.7
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#212876
secondary
#A9A14A
accent
#D348E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212876

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

Preview Lab → · Contrast checker → · Palette generator →

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