#21199D#21199D

#21199D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.197 H 271.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#21199D
RGBrgb(33, 25, 157)
HSLhsl(244, 73%, 36%)
HSVhsv(244, 84%, 62%)
CMYKcmyk(79%, 84.1%, 0%, 38.4%)
CIE-LABlab(21.77, 47.36, -68.11)
CIE-LCHlch(21.77, 82.96, 304.82°)
OKLaboklab(34.66% 0.0066 -0.197)
OKLCHoklch(34.66% 0.197 271.9)
XYZxyz(7.0586, 3.4521, 32.1861)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21199D #959D19
analogous
#19539D #21199D #63199D
triadic
#21199D #9D2119 #199D21
tetradic
#21199D #9D1953 #959D19 #199D63
square
#21199D #9D1953 #959D19 #199D63
split-complementary
#21199D #9D6319 #539D19
monochromatic
#0B0833 #161168 #21199D #2C21D2 #574EE3

Accessibility & contrast

On white

12.42
#21199D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21199D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21199D
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21199D#FFFFFF#000000##FFFFFF
##21199D1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21199d;
/* rgb */ color: rgb(33, 25, 157);
/* oklch */ color: oklch(34.7% 0.197 271.9);
Tailwind
colors: {
  custom: {
    50: '#745abb',
    500: '#21199d',
    950: '#000000',
  },
}
SCSS
$custom: #21199d;
$custom-light: #745abb;
$custom-dark: #000000;
JSON
{
  "hex": "#21199d",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 157
  },
  "hsl": {
    "h": 243.636,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.19716,
    "h": 271.9
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#21199D
secondary
#BEC54D
accent
#EF39E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21199D

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

Preview Lab → · Contrast checker → · Palette generator →

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