#21159E#21159E

#21159E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.4% C 0.201 H 272.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#21159E
RGBrgb(33, 21, 158)
HSLhsl(245, 77%, 35%)
HSVhsv(245, 87%, 62%)
CMYKcmyk(79.1%, 86.7%, 0%, 38%)
CIE-LABlab(21.31, 49.41, -69.48)
CIE-LCHlch(21.31, 85.26, 305.42°)
OKLaboklab(34.37% 0.0072 -0.201)
OKLCHoklch(34.37% 0.201 272.1)
XYZxyz(7.0649, 3.3275, 32.6111)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21159E #929E15
analogous
#154E9E #21159E #65159E
triadic
#21159E #9E2115 #159E21
tetradic
#21159E #9E154E #929E15 #159E65
square
#21159E #9E154E #929E15 #159E65
split-complementary
#21159E #9E6515 #4E9E15
monochromatic
#0A0732 #160E68 #21159E #2C1CD4 #5547E7

Accessibility & contrast

On white

12.61
#21159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#21159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21159E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21159E#FFFFFF#000000##FFFFFF
##21159E1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21159e;
/* rgb */ color: rgb(33, 21, 158);
/* oklch */ color: oklch(34.4% 0.201 272.1);
Tailwind
colors: {
  custom: {
    50: '#7559bc',
    500: '#21159e',
    950: '#000000',
  },
}
SCSS
$custom: #21159e;
$custom-light: #7559bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21159e",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 245.255,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.20109,
    "h": 272.1
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#21159E
secondary
#BCC747
accent
#F335E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21159E

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

Preview Lab → · Contrast checker → · Palette generator →

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