#212977#212977

#212977 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.132 H 272.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#212977
RGBrgb(33, 41, 119)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 72%, 47%)
CMYKcmyk(72.3%, 65.5%, 0%, 53.3%)
CIE-LABlab(20.98, 24.75, -45.64)
CIE-LCHlch(20.98, 51.92, 298.46°)
OKLaboklab(32.87% 0.0053 -0.1317)
OKLCHoklch(32.87% 0.132 272.3)
XYZxyz(4.7488, 3.2407, 17.8244)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212977 #776F21
analogous
#215477 #212977 #442177
triadic
#212977 #772129 #297721
tetradic
#212977 #772154 #776F21 #217744
square
#212977 #772154 #776F21 #217744
split-complementary
#212977 #774421 #547721
monochromatic
#070818 #141847 #212977 #2E3AA7 #4753CC

Accessibility & contrast

On white

12.74
#212977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212977
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212977#FFFFFF#000000##FFFFFF
##2129771.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212977;
/* rgb */ color: rgb(33, 41, 119);
/* oklch */ color: oklch(32.9% 0.132 272.3);
Tailwind
colors: {
  custom: {
    50: '#69629f',
    500: '#212977',
    950: '#000000',
  },
}
SCSS
$custom: #212977;
$custom-light: #69629f;
$custom-dark: #000000;
JSON
{
  "hex": "#212977",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 234.419,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.13186,
    "h": 272.3
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212977

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

Preview Lab → · Contrast checker → · Palette generator →

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