#20156B#20156B

#20156B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.139 H 278.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#20156B
RGBrgb(32, 21, 107)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(70.1%, 80.4%, 0%, 58%)
CIE-LABlab(14.98, 33.08, -47.75)
CIE-LCHlch(14.98, 58.09, 304.72°)
OKLaboklab(28.16% 0.0202 -0.1379)
OKLCHoklch(28.16% 0.139 278.3)
XYZxyz(3.5168, 1.9046, 14.0894)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156B #606B15
analogous
#15356B #20156B #4B156B
triadic
#20156B #6B2015 #156B20
tetradic
#20156B #6B1535 #606B15 #156B4B
square
#20156B #6B1535 #606B15 #156B4B
split-complementary
#20156B #6B4B15 #356B15
monochromatic
#08051A #110B38 #20156B #2F1F9E #3F29D1

Accessibility & contrast

On white

15.21
#20156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#20156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20156B
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156B#FFFFFF#000000##FFFFFF
##20156B1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20156b;
/* rgb */ color: rgb(32, 21, 107);
/* oklch */ color: oklch(28.2% 0.139 278.3);
Tailwind
colors: {
  custom: {
    50: '#685496',
    500: '#20156b',
    950: '#000000',
  },
}
SCSS
$custom: #20156b;
$custom-light: #685496;
$custom-dark: #000000;
JSON
{
  "hex": "#20156b",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 247.674,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28159,
    "c": 0.13939,
    "h": 278.3
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#20156B
secondary
#94A23A
accent
#EA3ED4
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20156B

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

Preview Lab → · Contrast checker → · Palette generator →

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