#21197D#21197D

#21197D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.158 H 275.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#21197D
RGBrgb(33, 25, 125)
HSLhsl(245, 67%, 29%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(73.6%, 80%, 0%, 51%)
CIE-LABlab(17.91, 37.02, -54.52)
CIE-LCHlch(17.91, 65.90, 304.18°)
OKLaboklab(30.85% 0.0148 -0.1577)
OKLCHoklch(30.85% 0.158 275.3)
XYZxyz(4.6753, 2.4988, 19.6340)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197D #757D19
analogous
#19437D #21197D #53197D
triadic
#21197D #7D2119 #197D21
tetradic
#21197D #7D1943 #757D19 #197D53
square
#21197D #7D1943 #757D19 #197D53
split-complementary
#21197D #7D5319 #437D19
monochromatic
#07051A #140F4A #21197D #2E23B0 #4639D7

Accessibility & contrast

On white

14.00
#21197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#21197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21197D
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197D#FFFFFF#000000##FFFFFF
##21197D1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21197d;
/* rgb */ color: rgb(33, 25, 125);
/* oklch */ color: oklch(30.9% 0.158 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c58a4',
    500: '#21197d',
    950: '#000000',
  },
}
SCSS
$custom: #21197d;
$custom-light: #6c58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21197d",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 244.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30852,
    "c": 0.15834,
    "h": 275.3
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21197D

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

Preview Lab → · Contrast checker → · Palette generator →

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