#212193#212193

#212193 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.178 H 272.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#212193
RGBrgb(33, 33, 147)
HSLhsl(240, 63%, 35%)
HSVhsv(240, 78%, 58%)
CMYKcmyk(77.6%, 77.6%, 0%, 42.4%)
CIE-LABlab(22.01, 39.98, -61.56)
CIE-LCHlch(22.01, 73.40, 303.00°)
OKLaboklab(34.47% 0.0063 -0.1782)
OKLCHoklch(34.47% 0.178 272)
XYZxyz(6.4357, 3.5169, 27.9378)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212193 #939321
analogous
#215A93 #212193 #5A2193
triadic
#212193 #932121 #219321
tetradic
#212193 #93215A #939321 #21935A
square
#212193 #93215A #939321 #21935A
split-complementary
#212193 #935A21 #5A9321
monochromatic
#0B0B2F #161661 #212193 #2C2CC5 #5555D9

Accessibility & contrast

On white

12.33
#212193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212193
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212193#FFFFFF#000000##FFFFFF
##2121931.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212193;
/* rgb */ color: rgb(33, 33, 147);
/* oklch */ color: oklch(34.5% 0.178 272.0);
Tailwind
colors: {
  custom: {
    50: '#715eb4',
    500: '#212193',
    950: '#000000',
  },
}
SCSS
$custom: #212193;
$custom-light: #715eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#212193",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 240,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34474,
    "c": 0.17831,
    "h": 272
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#212193
secondary
#BDBD53
accent
#E641E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212193

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

Preview Lab → · Contrast checker → · Palette generator →

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