#20156A#20156A

#20156A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.138 H 278.5°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#20156A
RGBrgb(32, 21, 106)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(69.8%, 80.2%, 0%, 58.4%)
CIE-LABlab(14.86, 32.74, -47.28)
CIE-LCHlch(14.86, 57.51, 304.70°)
OKLaboklab(28.05% 0.0204 -0.1365)
OKLCHoklch(28.05% 0.138 278.5)
XYZxyz(3.4645, 1.8837, 13.8139)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156A #5F6A15
analogous
#15346A #20156A #4B156A
triadic
#20156A #6A2015 #156A20
tetradic
#20156A #6A1534 #5F6A15 #156A4B
square
#20156A #6A1534 #5F6A15 #156A4B
split-complementary
#20156A #6A4B15 #346A15
monochromatic
#08051A #110B37 #20156A #2F1F9D #3F29D0

Accessibility & contrast

On white

15.25
#20156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20156A
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156A#FFFFFF#000000##FFFFFF
##20156A1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #20156a;
/* rgb */ color: rgb(32, 21, 106);
/* oklch */ color: oklch(28.0% 0.138 278.5);
Tailwind
colors: {
  custom: {
    50: '#675496',
    500: '#20156a',
    950: '#000000',
  },
}
SCSS
$custom: #20156a;
$custom-light: #675496;
$custom-dark: #000000;
JSON
{
  "hex": "#20156a",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 247.765,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28045,
    "c": 0.13807,
    "h": 278.5
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#20156A
secondary
#93A13A
accent
#EA3ED4
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20156A

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

Preview Lab → · Contrast checker → · Palette generator →

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