#20159E#20159E

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

Color values

HEX#20159E
RGBrgb(32, 21, 158)
HSLhsl(245, 77%, 35%)
HSVhsv(245, 87%, 62%)
CMYKcmyk(79.7%, 86.7%, 0%, 38%)
CIE-LABlab(21.25, 49.36, -69.59)
CIE-LCHlch(21.25, 85.31, 305.35°)
OKLaboklab(34.32% 0.0059 -0.2013)
OKLCHoklch(34.32% 0.201 271.7)
XYZxyz(7.0333, 3.3112, 32.6096)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20159E #939E15
analogous
#154E9E #20159E #65159E
triadic
#20159E #9E2015 #159E20
tetradic
#20159E #9E154E #939E15 #159E65
square
#20159E #9E154E #939E15 #159E65
split-complementary
#20159E #9E6515 #4E9E15
monochromatic
#0A0732 #150E68 #20159E #2B1CD4 #5447E7

Accessibility & contrast

On white

12.63
#20159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20159E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20159E#FFFFFF#000000##FFFFFF
##20159E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.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: #20159e;
/* rgb */ color: rgb(32, 21, 158);
/* oklch */ color: oklch(34.3% 0.201 271.7);
Tailwind
colors: {
  custom: {
    50: '#7558bc',
    500: '#20159e',
    950: '#000000',
  },
}
SCSS
$custom: #20159e;
$custom-light: #7558bc;
$custom-dark: #000000;
JSON
{
  "hex": "#20159e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 244.818,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.20136,
    "h": 271.7
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#20159E
secondary
#BDC747
accent
#F335E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #20159E

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

Preview Lab → · Contrast checker → · Palette generator →

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