#212477#212477

#212477 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.138 H 273.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#212477
RGBrgb(33, 36, 119)
HSLhsl(238, 57%, 30%)
HSVhsv(238, 72%, 47%)
CMYKcmyk(72.3%, 69.7%, 0%, 53.3%)
CIE-LABlab(19.71, 28.13, -47.73)
CIE-LCHlch(19.71, 55.40, 300.51°)
OKLaboklab(31.94% 0.0091 -0.1379)
OKLCHoklch(31.94% 0.138 273.8)
XYZxyz(4.5867, 2.9166, 17.7704)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212477 #777421
analogous
#214F77 #212477 #492177
triadic
#212477 #772124 #247721
tetradic
#212477 #77214F #777421 #217749
square
#212477 #77214F #777421 #217749
split-complementary
#212477 #774921 #4F7721
monochromatic
#070718 #141647 #212477 #2E32A7 #474BCC

Accessibility & contrast

On white

13.26
#212477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#212477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212477
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212477#FFFFFF#000000##FFFFFF
##2124771.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212477;
/* rgb */ color: rgb(33, 36, 119);
/* oklch */ color: oklch(31.9% 0.138 273.8);
Tailwind
colors: {
  custom: {
    50: '#6a5f9f',
    500: '#212477',
    950: '#000000',
  },
}
SCSS
$custom: #212477;
$custom-light: #6a5f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#212477",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 119
  },
  "hsl": {
    "h": 237.907,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3194,
    "c": 0.1382,
    "h": 273.8
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#212477
secondary
#AAA74A
accent
#DB48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #212477

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

Preview Lab → · Contrast checker → · Palette generator →

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