#21198E#21198E

#21198E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.179 H 273.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#21198E
RGBrgb(33, 25, 142)
HSLhsl(244, 70%, 33%)
HSVhsv(244, 82%, 56%)
CMYKcmyk(76.8%, 82.4%, 0%, 44.3%)
CIE-LABlab(19.93, 42.62, -61.90)
CIE-LCHlch(19.93, 75.15, 304.55°)
OKLaboklab(32.85% 0.0104 -0.1791)
OKLCHoklch(32.85% 0.179 273.3)
XYZxyz(5.8557, 2.9710, 25.8508)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198E #868E19
analogous
#194B8E #21198E #5C198E
triadic
#21198E #8E2119 #198E21
tetradic
#21198E #8E194B #868E19 #198E5C
square
#21198E #8E194B #868E19 #198E5C
split-complementary
#21198E #8E5C19 #4B8E19
monochromatic
#090726 #15105A #21198E #2D22C2 #4E43DE

Accessibility & contrast

On white

13.17
#21198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#21198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21198E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198E#FFFFFF#000000##FFFFFF
##21198E1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21198e;
/* rgb */ color: rgb(33, 25, 142);
/* oklch */ color: oklch(32.8% 0.179 273.3);
Tailwind
colors: {
  custom: {
    50: '#7159b0',
    500: '#21198e',
    950: '#000000',
  },
}
SCSS
$custom: #21198e;
$custom-light: #7159b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21198e",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 244.103,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.17937,
    "h": 273.3
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#21198E
secondary
#B7BF44
accent
#ED3BE1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21198E

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

Preview Lab → · Contrast checker → · Palette generator →

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