#21198B#21198B

#21198B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.176 H 273.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#21198B
RGBrgb(33, 25, 139)
HSLhsl(244, 70%, 32%)
HSVhsv(244, 82%, 55%)
CMYKcmyk(76.3%, 82%, 0%, 45.5%)
CIE-LABlab(19.57, 41.65, -60.62)
CIE-LCHlch(19.57, 73.55, 304.49°)
OKLaboklab(32.49% 0.0112 -0.1754)
OKLCHoklch(32.49% 0.176 273.6)
XYZxyz(5.6335, 2.8821, 24.6805)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198B #838B19
analogous
#194A8B #21198B #5A198B
triadic
#21198B #8B2119 #198B21
tetradic
#21198B #8B194A #838B19 #198B5A
square
#21198B #8B194A #838B19 #198B5A
split-complementary
#21198B #8B5A19 #4A8B19
monochromatic
#080623 #151057 #21198B #2D22BF #4C41DD

Accessibility & contrast

On white

13.32
#21198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21198B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198B#FFFFFF#000000##FFFFFF
##21198B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21198b;
/* rgb */ color: rgb(33, 25, 139);
/* oklch */ color: oklch(32.5% 0.176 273.6);
Tailwind
colors: {
  custom: {
    50: '#7059ae',
    500: '#21198b',
    950: '#000000',
  },
}
SCSS
$custom: #21198b;
$custom-light: #7059ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21198b",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 244.211,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.17573,
    "h": 273.6
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#21198B
secondary
#B5BE42
accent
#EC3BE0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #21198B

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

Preview Lab → · Contrast checker → · Palette generator →

#21198B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva