#20156F#20156F

#20156F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.145 H 277.6°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#20156F
RGBrgb(32, 21, 111)
HSLhsl(247, 68%, 26%)
HSVhsv(247, 81%, 44%)
CMYKcmyk(71.2%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.44, 34.43, -49.60)
CIE-LCHlch(15.44, 60.38, 304.77°)
OKLaboklab(28.62% 0.0191 -0.1433)
OKLCHoklch(28.62% 0.145 277.6)
XYZxyz(3.7321, 1.9908, 15.2234)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20156F #646F15
analogous
#15376F #20156F #4D156F
triadic
#20156F #6F2015 #156F20
tetradic
#20156F #6F1537 #646F15 #156F4D
square
#20156F #6F1537 #646F15 #156F4D
split-complementary
#20156F #6F4D15 #376F15
monochromatic
#07051A #110B3C #20156F #2F1FA2 #3E28D6

Accessibility & contrast

On white

15.02
#20156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#20156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20156F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20156F#FFFFFF#000000##FFFFFF
##20156F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20156f;
/* rgb */ color: rgb(32, 21, 111);
/* oklch */ color: oklch(28.6% 0.145 277.6);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#20156f',
    950: '#000000',
  },
}
SCSS
$custom: #20156f;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#20156f",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 247.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28619,
    "c": 0.14457,
    "h": 277.6
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#20156F
secondary
#98A53A
accent
#EB3DD6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20156F

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

Preview Lab → · Contrast checker → · Palette generator →

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