#21197F#21197F

#21197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.161 H 275.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#21197F
RGBrgb(33, 25, 127)
HSLhsl(245, 67%, 30%)
HSVhsv(245, 80%, 50%)
CMYKcmyk(74%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.14, 37.69, -55.41)
CIE-LCHlch(18.14, 67.02, 304.23°)
OKLaboklab(31.08% 0.0142 -0.1602)
OKLCHoklch(31.08% 0.161 275.1)
XYZxyz(4.8043, 2.5504, 20.3136)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197F #777F19
analogous
#19447F #21197F #54197F
triadic
#21197F #7F2119 #197F21
tetradic
#21197F #7F1944 #777F19 #197F54
square
#21197F #7F1944 #777F19 #197F54
split-complementary
#21197F #7F5419 #447F19
monochromatic
#07051A #140F4C #21197F #2E23B2 #473AD8

Accessibility & contrast

On white

13.91
#21197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#21197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21197F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197F#FFFFFF#000000##FFFFFF
##21197F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21197f;
/* rgb */ color: rgb(33, 25, 127);
/* oklch */ color: oklch(31.1% 0.161 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#21197f',
    950: '#000000',
  },
}
SCSS
$custom: #21197f;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21197f",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 244.706,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31083,
    "c": 0.16086,
    "h": 275.1
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#21197F
secondary
#AAB341
accent
#EA3EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21197F

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

Preview Lab → · Contrast checker → · Palette generator →

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