#20156D#20156D

#20156D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.142 H 277.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#20156D
RGBrgb(32, 21, 109)
HSLhsl(248, 68%, 25%)
HSVhsv(248, 81%, 43%)
CMYKcmyk(70.6%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.21, 33.76, -48.68)
CIE-LCHlch(15.21, 59.24, 304.74°)
OKLaboklab(28.39% 0.0196 -0.1406)
OKLCHoklch(28.39% 0.142 277.9)
XYZxyz(3.6233, 1.9472, 14.6499)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156D #626D15
analogous
#15366D #20156D #4C156D
triadic
#20156D #6D2015 #156D20
tetradic
#20156D #6D1536 #626D15 #156D4C
square
#20156D #6D1536 #626D15 #156D4C
split-complementary
#20156D #6D4C15 #366D15
monochromatic
#08051A #110B3A #20156D #2F1FA0 #3E29D4

Accessibility & contrast

On white

15.11
#20156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#20156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20156D
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156D#FFFFFF#000000##FFFFFF
##20156D1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20156d;
/* rgb */ color: rgb(32, 21, 109);
/* oklch */ color: oklch(28.4% 0.142 277.9);
Tailwind
colors: {
  custom: {
    50: '#685598',
    500: '#20156d',
    950: '#000000',
  },
}
SCSS
$custom: #20156d;
$custom-light: #685598;
$custom-dark: #000000;
JSON
{
  "hex": "#20156d",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 247.5,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28388,
    "c": 0.14198,
    "h": 277.9
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#20156D
secondary
#96A33A
accent
#EB3DD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20156D

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

Preview Lab → · Contrast checker → · Palette generator →

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