#21198C#21198C

#21198C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.177 H 273.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#21198C
RGBrgb(33, 25, 140)
HSLhsl(244, 70%, 32%)
HSVhsv(244, 82%, 55%)
CMYKcmyk(76.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(19.69, 41.97, -61.05)
CIE-LCHlch(19.69, 74.09, 304.51°)
OKLaboklab(32.61% 0.0109 -0.1766)
OKLCHoklch(32.61% 0.177 273.5)
XYZxyz(5.7069, 2.9115, 25.0671)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198C #848C19
analogous
#194A8C #21198C #5B198C
triadic
#21198C #8C2119 #198C21
tetradic
#21198C #8C194A #848C19 #198C5B
square
#21198C #8C194A #848C19 #198C5B
split-complementary
#21198C #8C5B19 #4A8C19
monochromatic
#090624 #151058 #21198C #2D22C0 #4D42DD

Accessibility & contrast

On white

13.27
#21198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21198C
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198C#FFFFFF#000000##FFFFFF
##21198C1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21198c;
/* rgb */ color: rgb(33, 25, 140);
/* oklch */ color: oklch(32.6% 0.177 273.5);
Tailwind
colors: {
  custom: {
    50: '#7059af',
    500: '#21198c',
    950: '#000000',
  },
}
SCSS
$custom: #21198c;
$custom-light: #7059af;
$custom-dark: #000000;
JSON
{
  "hex": "#21198c",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 244.174,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32609,
    "c": 0.17695,
    "h": 273.5
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#21198C
secondary
#B6BE43
accent
#ED3BE0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #21198C

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

Preview Lab → · Contrast checker → · Palette generator →

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