#212776#212776

#212776 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.133 H 273.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#212776
RGBrgb(33, 39, 118)
HSLhsl(236, 56%, 30%)
HSVhsv(236, 72%, 46%)
CMYKcmyk(72%, 66.9%, 0%, 53.7%)
CIE-LABlab(20.37, 25.73, -46.01)
CIE-LCHlch(20.37, 52.72, 299.22°)
OKLaboklab(32.39% 0.007 -0.1328)
OKLCHoklch(32.39% 0.133 273)
XYZxyz(4.6216, 3.0819, 17.4873)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212776 #767021
analogous
#215176 #212776 #462176
triadic
#212776 #762127 #277621
tetradic
#212776 #762151 #767021 #217646
square
#212776 #762151 #767021 #217646
split-complementary
#212776 #764621 #517621
monochromatic
#070818 #141746 #212776 #2E37A6 #4650CB

Accessibility & contrast

On white

12.99
#212776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212776
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212776#FFFFFF#000000##FFFFFF
##2127761.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212776;
/* rgb */ color: rgb(33, 39, 118);
/* oklch */ color: oklch(32.4% 0.133 273.0);
Tailwind
colors: {
  custom: {
    50: '#69619e',
    500: '#212776',
    950: '#000000',
  },
}
SCSS
$custom: #212776;
$custom-light: #69619e;
$custom-dark: #000000;
JSON
{
  "hex": "#212776",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 235.765,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.13301,
    "h": 273
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#212776
secondary
#A9A24A
accent
#D548E0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212776

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

Preview Lab → · Contrast checker → · Palette generator →

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