#21198A#21198A

#21198A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.175 H 273.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#21198A
RGBrgb(33, 25, 138)
HSLhsl(244, 69%, 32%)
HSVhsv(244, 82%, 54%)
CMYKcmyk(76.1%, 81.9%, 0%, 45.9%)
CIE-LABlab(19.45, 41.32, -60.20)
CIE-LCHlch(19.45, 73.02, 304.47°)
OKLaboklab(32.37% 0.0114 -0.1741)
OKLCHoklch(32.37% 0.175 273.8)
XYZxyz(5.5607, 2.8530, 24.2975)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198A #828A19
analogous
#194A8A #21198A #5A198A
triadic
#21198A #8A2119 #198A21
tetradic
#21198A #8A194A #828A19 #198A5A
square
#21198A #8A194A #828A19 #198A5A
split-complementary
#21198A #8A5A19 #4A8A19
monochromatic
#080622 #151056 #21198A #2D22BE #4C41DD

Accessibility & contrast

On white

13.37
#21198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21198A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198A#FFFFFF#000000##FFFFFF
##21198A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21198a;
/* rgb */ color: rgb(33, 25, 138);
/* oklch */ color: oklch(32.4% 0.175 273.8);
Tailwind
colors: {
  custom: {
    50: '#7059ad',
    500: '#21198a',
    950: '#000000',
  },
}
SCSS
$custom: #21198a;
$custom-light: #7059ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21198a",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 244.248,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32372,
    "c": 0.17451,
    "h": 273.8
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#21198A
secondary
#B4BD42
accent
#EC3CE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #21198A

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

Preview Lab → · Contrast checker → · Palette generator →

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