#20156C#20156C

#20156C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.141 H 278.1°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#20156C
RGBrgb(32, 21, 108)
HSLhsl(248, 67%, 25%)
HSVhsv(248, 81%, 42%)
CMYKcmyk(70.4%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.09, 33.42, -48.21)
CIE-LCHlch(15.09, 58.66, 304.73°)
OKLaboklab(28.27% 0.0199 -0.1393)
OKLCHoklch(28.27% 0.141 278.1)
XYZxyz(3.5697, 1.9258, 14.3680)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156C #616C15
analogous
#15366C #20156C #4B156C
triadic
#20156C #6C2015 #156C20
tetradic
#20156C #6C1536 #616C15 #156C4B
square
#20156C #6C1536 #616C15 #156C4B
split-complementary
#20156C #6C4B15 #366C15
monochromatic
#08051A #110B39 #20156C #2F1F9F #3E29D2

Accessibility & contrast

On white

15.16
#20156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20156C
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156C#FFFFFF#000000##FFFFFF
##20156C1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20156c;
/* rgb */ color: rgb(32, 21, 108);
/* oklch */ color: oklch(28.3% 0.141 278.1);
Tailwind
colors: {
  custom: {
    50: '#685497',
    500: '#20156c',
    950: '#000000',
  },
}
SCSS
$custom: #20156c;
$custom-light: #685497;
$custom-dark: #000000;
JSON
{
  "hex": "#20156c",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 247.586,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28274,
    "c": 0.14068,
    "h": 278.1
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#20156C
secondary
#95A33A
accent
#EA3DD4
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20156C

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

Preview Lab → · Contrast checker → · Palette generator →

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