#212192#212192

#212192 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.177 H 272.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#212192
RGBrgb(33, 33, 146)
HSLhsl(240, 63%, 35%)
HSVhsv(240, 77%, 57%)
CMYKcmyk(77.4%, 77.4%, 0%, 42.7%)
CIE-LABlab(21.89, 39.63, -61.13)
CIE-LCHlch(21.89, 72.85, 302.96°)
OKLaboklab(34.36% 0.0065 -0.1769)
OKLCHoklch(34.36% 0.177 272.1)
XYZxyz(6.3576, 3.4857, 27.5263)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212192 #929221
analogous
#215992 #212192 #592192
triadic
#212192 #922121 #219221
tetradic
#212192 #922159 #929221 #219259
square
#212192 #922159 #929221 #219259
split-complementary
#212192 #925921 #599221
monochromatic
#0A0A2E #161660 #212192 #2C2CC4 #5555D9

Accessibility & contrast

On white

12.37
#212192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212192
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212192#FFFFFF#000000##FFFFFF
##2121921.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212192;
/* rgb */ color: rgb(33, 33, 146);
/* oklch */ color: oklch(34.4% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#715eb3',
    500: '#212192',
    950: '#000000',
  },
}
SCSS
$custom: #212192;
$custom-light: #715eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#212192",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 240,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34361,
    "c": 0.17707,
    "h": 272.1
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#212192
secondary
#BCBC53
accent
#E642E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212192

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

Preview Lab → · Contrast checker → · Palette generator →

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