#212476#212476

#212476 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.137 H 273.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#212476
RGBrgb(33, 36, 118)
HSLhsl(238, 56%, 30%)
HSVhsv(238, 72%, 46%)
CMYKcmyk(72%, 69.5%, 0%, 53.7%)
CIE-LABlab(19.61, 27.76, -47.25)
CIE-LCHlch(19.61, 54.80, 300.43°)
OKLaboklab(31.84% 0.0093 -0.1365)
OKLCHoklch(31.84% 0.137 273.9)
XYZxyz(4.5270, 2.8927, 17.4558)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212476 #767321
analogous
#214F76 #212476 #482176
triadic
#212476 #762124 #247621
tetradic
#212476 #76214F #767321 #217648
square
#212476 #76214F #767321 #217648
split-complementary
#212476 #764821 #4F7621
monochromatic
#070718 #141546 #212476 #2E33A6 #464BCB

Accessibility & contrast

On white

13.30
#212476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212476
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212476#FFFFFF#000000##FFFFFF
##2124761.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003A49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212476;
/* rgb */ color: rgb(33, 36, 118);
/* oklch */ color: oklch(31.8% 0.137 273.9);
Tailwind
colors: {
  custom: {
    50: '#695f9e',
    500: '#212476',
    950: '#000000',
  },
}
SCSS
$custom: #212476;
$custom-light: #695f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#212476",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 118
  },
  "hsl": {
    "h": 237.882,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.13681,
    "h": 273.9
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#212476
secondary
#A9A64A
accent
#DA48E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212476

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

Preview Lab → · Contrast checker → · Palette generator →

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