#212194#212194

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

Color values

HEX#212194
RGBrgb(33, 33, 148)
HSLhsl(240, 64%, 35%)
HSVhsv(240, 78%, 58%)
CMYKcmyk(77.7%, 77.7%, 0%, 42%)
CIE-LABlab(22.12, 40.32, -61.99)
CIE-LCHlch(22.12, 73.95, 303.04°)
OKLaboklab(34.59% 0.0061 -0.1794)
OKLCHoklch(34.59% 0.18 271.9)
XYZxyz(6.5145, 3.5485, 28.3528)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212194 #949421
analogous
#215A94 #212194 #5A2194
triadic
#212194 #942121 #219421
tetradic
#212194 #94215A #949421 #21945A
square
#212194 #94215A #949421 #21945A
split-complementary
#212194 #945A21 #5A9421
monochromatic
#0B0B30 #161662 #212194 #2C2CC6 #5656D9

Accessibility & contrast

On white

12.28
#212194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212194
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212194#FFFFFF#000000##FFFFFF
##2121941.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212194;
/* rgb */ color: rgb(33, 33, 148);
/* oklch */ color: oklch(34.6% 0.180 271.9);
Tailwind
colors: {
  custom: {
    50: '#715eb5',
    500: '#212194',
    950: '#000000',
  },
}
SCSS
$custom: #212194;
$custom-light: #715eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212194",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 240,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.17955,
    "h": 271.9
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#212194
secondary
#BDBD54
accent
#E741E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212194

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

Preview Lab → · Contrast checker → · Palette generator →

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