#21198F#21198F

#21198F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.181 H 273.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#21198F
RGBrgb(33, 25, 143)
HSLhsl(244, 70%, 33%)
HSVhsv(244, 83%, 56%)
CMYKcmyk(76.9%, 82.5%, 0%, 43.9%)
CIE-LABlab(20.05, 42.94, -62.32)
CIE-LCHlch(20.05, 75.68, 304.57°)
OKLaboklab(32.97% 0.0102 -0.1803)
OKLCHoklch(32.97% 0.181 273.2)
XYZxyz(5.9311, 3.0011, 26.2480)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198F #878F19
analogous
#194C8F #21198F #5C198F
triadic
#21198F #8F2119 #198F21
tetradic
#21198F #8F194C #878F19 #198F5C
square
#21198F #8F194C #878F19 #198F5C
split-complementary
#21198F #8F5C19 #4C8F19
monochromatic
#090727 #15105B #21198F #2D22C3 #4F44DE

Accessibility & contrast

On white

13.12
#21198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#21198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21198F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198F#FFFFFF#000000##FFFFFF
##21198F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21198f;
/* rgb */ color: rgb(33, 25, 143);
/* oklch */ color: oklch(33.0% 0.181 273.2);
Tailwind
colors: {
  custom: {
    50: '#7159b1',
    500: '#21198f',
    950: '#000000',
  },
}
SCSS
$custom: #21198f;
$custom-light: #7159b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21198f",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 244.068,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32966,
    "c": 0.18058,
    "h": 273.2
  },
  "luminance": 0.03002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21198F

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

Preview Lab → · Contrast checker → · Palette generator →

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