#20156E#20156E

#20156E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.143 H 277.8°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#20156E
RGBrgb(32, 21, 110)
HSLhsl(247, 68%, 26%)
HSVhsv(247, 81%, 43%)
CMYKcmyk(70.9%, 80.9%, 0%, 56.9%)
CIE-LABlab(15.32, 34.10, -49.14)
CIE-LCHlch(15.32, 59.81, 304.76°)
OKLaboklab(28.5% 0.0194 -0.142)
OKLCHoklch(28.5% 0.143 277.8)
XYZxyz(3.6774, 1.9689, 14.9351)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156E #636E15
analogous
#15366E #20156E #4C156E
triadic
#20156E #6E2015 #156E20
tetradic
#20156E #6E1536 #636E15 #156E4C
square
#20156E #6E1536 #636E15 #156E4C
split-complementary
#20156E #6E4C15 #366E15
monochromatic
#07051A #110B3B #20156E #2F1FA1 #3E29D5

Accessibility & contrast

On white

15.07
#20156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20156E
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156E#FFFFFF#000000##FFFFFF
##20156E1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #20156e;
/* rgb */ color: rgb(32, 21, 110);
/* oklch */ color: oklch(28.5% 0.143 277.8);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#20156e',
    950: '#000000',
  },
}
SCSS
$custom: #20156e;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#20156e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 247.416,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28503,
    "c": 0.14328,
    "h": 277.8
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#20156E
secondary
#97A43A
accent
#EB3DD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20156E

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

Preview Lab → · Contrast checker → · Palette generator →

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