#212884#212884

#212884 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.151 H 271.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#212884
RGBrgb(33, 40, 132)
HSLhsl(236, 60%, 32%)
HSVhsv(236, 75%, 52%)
CMYKcmyk(75%, 69.7%, 0%, 48.2%)
CIE-LABlab(21.97, 30.32, -52.27)
CIE-LCHlch(21.97, 60.43, 300.12°)
OKLaboklab(33.97% 0.005 -0.1512)
OKLCHoklch(33.97% 0.151 271.9)
XYZxyz(5.5494, 3.5063, 22.2096)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212884 #847D21
analogous
#215984 #212884 #4C2184
triadic
#212884 #842128 #288421
tetradic
#212884 #842159 #847D21 #21844C
square
#212884 #842159 #847D21 #21844C
split-complementary
#212884 #844C21 #598421
monochromatic
#090A22 #151953 #212884 #2D37B5 #4D56D2

Accessibility & contrast

On white

12.34
#212884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212884
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212884#FFFFFF#000000##FFFFFF
##2128841.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212884;
/* rgb */ color: rgb(33, 40, 132);
/* oklch */ color: oklch(34.0% 0.151 271.9);
Tailwind
colors: {
  custom: {
    50: '#6c62a9',
    500: '#212884',
    950: '#000000',
  },
}
SCSS
$custom: #212884;
$custom-light: #6c62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212884",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 235.758,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33971,
    "c": 0.15124,
    "h": 271.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#212884
secondary
#B6AE4B
accent
#D845E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212884

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

Preview Lab → · Contrast checker → · Palette generator →

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