#212892#212892

#212892 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.170 H 271.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#212892
RGBrgb(33, 40, 146)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 77%, 57%)
CMYKcmyk(77.4%, 72.6%, 0%, 42.7%)
CIE-LABlab(23.39, 35.44, -58.66)
CIE-LCHlch(23.39, 68.53, 301.14°)
OKLaboklab(35.43% 0.0033 -0.1698)
OKLCHoklch(35.43% 0.17 271.1)
XYZxyz(6.5725, 3.9155, 27.5979)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212892 #928B21
analogous
#216192 #212892 #522192
triadic
#212892 #922128 #289221
tetradic
#212892 #922161 #928B21 #219252
square
#212892 #922161 #928B21 #219252
split-complementary
#212892 #925221 #619221
monochromatic
#0A0D2E #161A60 #212892 #2C36C4 #555DD9

Accessibility & contrast

On white

11.78
#212892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212892
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212892#FFFFFF#000000##FFFFFF
##2128921.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212892;
/* rgb */ color: rgb(33, 40, 146);
/* oklch */ color: oklch(35.4% 0.170 271.1);
Tailwind
colors: {
  custom: {
    50: '#7063b3',
    500: '#212892',
    950: '#000000',
  },
}
SCSS
$custom: #212892;
$custom-light: #7063b3;
$custom-dark: #000000;
JSON
{
  "hex": "#212892",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 236.283,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35427,
    "c": 0.16983,
    "h": 271.1
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#212892
secondary
#BCB653
accent
#DC42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212892

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

Preview Lab → · Contrast checker → · Palette generator →

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