#21197A#21197A

#21197A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.155 H 275.8°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#21197A
RGBrgb(33, 25, 122)
HSLhsl(245, 66%, 29%)
HSVhsv(245, 80%, 48%)
CMYKcmyk(73%, 79.5%, 0%, 52.2%)
CIE-LABlab(17.57, 36.01, -53.18)
CIE-LCHlch(17.57, 64.22, 304.11°)
OKLaboklab(30.51% 0.0155 -0.1537)
OKLCHoklch(30.51% 0.155 275.8)
XYZxyz(4.4865, 2.4233, 18.6399)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197A #727A19
analogous
#19427A #21197A #52197A
triadic
#21197A #7A2119 #197A21
tetradic
#21197A #7A1942 #727A19 #197A52
square
#21197A #7A1942 #727A19 #197A52
split-complementary
#21197A #7A5219 #427A19
monochromatic
#070519 #130F47 #21197A #2F23AD #4437D6

Accessibility & contrast

On white

14.14
#21197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21197A
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197A#FFFFFF#000000##FFFFFF
##21197A1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21197a;
/* rgb */ color: rgb(33, 25, 122);
/* oklch */ color: oklch(30.5% 0.155 275.8);
Tailwind
colors: {
  custom: {
    50: '#6b58a2',
    500: '#21197a',
    950: '#000000',
  },
}
SCSS
$custom: #21197a;
$custom-light: #6b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21197a",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 244.948,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30508,
    "c": 0.15451,
    "h": 275.8
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#21197A
secondary
#A5AF40
accent
#E93FDB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #21197A

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

Preview Lab → · Contrast checker → · Palette generator →

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