#21199F#21199F

#21199F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.199 H 271.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#21199F
RGBrgb(33, 25, 159)
HSLhsl(244, 73%, 36%)
HSVhsv(244, 84%, 62%)
CMYKcmyk(79.2%, 84.3%, 0%, 37.6%)
CIE-LABlab(22.02, 47.98, -68.92)
CIE-LCHlch(22.02, 83.97, 304.85°)
OKLaboklab(34.9% 0.0061 -0.1994)
OKLCHoklch(34.9% 0.199 271.7)
XYZxyz(7.2307, 3.5210, 33.0927)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21199F #979F19
analogous
#19549F #21199F #64199F
triadic
#21199F #9F2119 #199F21
tetradic
#21199F #9F1954 #979F19 #199F64
square
#21199F #9F1954 #979F19 #199F64
split-complementary
#21199F #9F6419 #549F19
monochromatic
#0B0835 #16116A #21199F #2C21D4 #584FE3

Accessibility & contrast

On white

12.32
#21199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#21199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21199F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21199F#FFFFFF#000000##FFFFFF
##21199F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002E9D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21199f;
/* rgb */ color: rgb(33, 25, 159);
/* oklch */ color: oklch(34.9% 0.199 271.7);
Tailwind
colors: {
  custom: {
    50: '#755bbd',
    500: '#21199f',
    950: '#000000',
  },
}
SCSS
$custom: #21199f;
$custom-light: #755bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#21199f",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 243.582,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34898,
    "c": 0.19949,
    "h": 271.7
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#21199F
secondary
#BEC64E
accent
#F038E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21199F

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

Preview Lab → · Contrast checker → · Palette generator →

#21199F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva