#21197E#21197E

#21197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.160 H 275.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#21197E
RGBrgb(33, 25, 126)
HSLhsl(245, 67%, 30%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(73.8%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.03, 37.36, -54.97)
CIE-LCHlch(18.03, 66.46, 304.20°)
OKLaboklab(30.97% 0.0145 -0.1589)
OKLCHoklch(30.97% 0.16 275.2)
XYZxyz(4.7395, 2.5245, 19.9721)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197E #767E19
analogous
#19447E #21197E #53197E
triadic
#21197E #7E2119 #197E21
tetradic
#21197E #7E1944 #767E19 #197E53
square
#21197E #7E1944 #767E19 #197E53
split-complementary
#21197E #7E5319 #447E19
monochromatic
#07051A #140F4B #21197E #2E23B1 #463AD8

Accessibility & contrast

On white

13.95
#21197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21197E
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197E#FFFFFF#000000##FFFFFF
##21197E1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21197e;
/* rgb */ color: rgb(33, 25, 126);
/* oklch */ color: oklch(31.0% 0.160 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c58a5',
    500: '#21197e',
    950: '#000000',
  },
}
SCSS
$custom: #21197e;
$custom-light: #6c58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21197e",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 244.752,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30968,
    "c": 0.1596,
    "h": 275.2
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21197E

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

Preview Lab → · Contrast checker → · Palette generator →

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