#21198D#21198D

#21198D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.178 H 273.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#21198D
RGBrgb(33, 25, 141)
HSLhsl(244, 70%, 33%)
HSVhsv(244, 82%, 55%)
CMYKcmyk(76.6%, 82.3%, 0%, 44.7%)
CIE-LABlab(19.81, 42.29, -61.48)
CIE-LCHlch(19.81, 74.62, 304.53°)
OKLaboklab(32.73% 0.0107 -0.1778)
OKLCHoklch(32.73% 0.178 273.4)
XYZxyz(5.7809, 2.9411, 25.4572)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21198D #858D19
analogous
#194B8D #21198D #5B198D
triadic
#21198D #8D2119 #198D21
tetradic
#21198D #8D194B #858D19 #198D5B
square
#21198D #8D194B #858D19 #198D5B
split-complementary
#21198D #8D5B19 #4B8D19
monochromatic
#090725 #151059 #21198D #2D22C1 #4D43DE

Accessibility & contrast

On white

13.22
#21198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21198D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21198D#FFFFFF#000000##FFFFFF
##21198D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21198d;
/* rgb */ color: rgb(33, 25, 141);
/* oklch */ color: oklch(32.7% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#21198d',
    950: '#000000',
  },
}
SCSS
$custom: #21198d;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21198d",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 244.138,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32728,
    "c": 0.17816,
    "h": 273.4
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#21198D
secondary
#B6BF43
accent
#ED3BE0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21198D

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

Preview Lab → · Contrast checker → · Palette generator →

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