#212877#212877

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

Color values

HEX#212877
RGBrgb(33, 40, 119)
HSLhsl(235, 57%, 30%)
HSVhsv(235, 72%, 47%)
CMYKcmyk(72.3%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.72, 25.43, -46.07)
CIE-LCHlch(20.72, 52.62, 298.90°)
OKLaboklab(32.68% 0.0061 -0.133)
OKLCHoklch(32.68% 0.133 272.6)
XYZxyz(4.7146, 3.1724, 17.8131)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212877 #777021
analogous
#215377 #212877 #452177
triadic
#212877 #772128 #287721
tetradic
#212877 #772153 #777021 #217745
square
#212877 #772153 #777021 #217745
split-complementary
#212877 #774521 #537721
monochromatic
#070818 #141847 #212877 #2E38A7 #4751CC

Accessibility & contrast

On white

12.85
#212877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212877
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212877#FFFFFF#000000##FFFFFF
##2128771.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212877;
/* rgb */ color: rgb(33, 40, 119);
/* oklch */ color: oklch(32.7% 0.133 272.6);
Tailwind
colors: {
  custom: {
    50: '#69629f',
    500: '#212877',
    950: '#000000',
  },
}
SCSS
$custom: #212877;
$custom-light: #69629f;
$custom-dark: #000000;
JSON
{
  "hex": "#212877",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 235.116,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.13315,
    "h": 272.6
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#212877
secondary
#AAA24A
accent
#D348E0
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #212877

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

Preview Lab → · Contrast checker → · Palette generator →

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