#20155B#20155B

#20155B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.4% C 0.118 H 281.8°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#20155B
RGBrgb(32, 21, 91)
HSLhsl(249, 63%, 22%)
HSVhsv(249, 77%, 36%)
CMYKcmyk(64.8%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.22, 27.57, -40.03)
CIE-LCHlch(13.22, 48.61, 304.56°)
OKLaboklab(26.39% 0.0242 -0.1154)
OKLCHoklch(26.39% 0.118 281.8)
XYZxyz(2.7516, 1.5985, 10.0591)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155B #505B15
analogous
#152D5B #20155B #43155B
triadic
#20155B #5B2015 #155B20
tetradic
#20155B #5B152D #505B15 #155B43
square
#20155B #5B152D #505B15 #155B43
split-complementary
#20155B #5B4315 #2D5B15
monochromatic
#090619 #0F0A29 #20155B #31208D #432CBE

Accessibility & contrast

On white

15.91
#20155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20155B
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155B#FFFFFF#000000##FFFFFF
##20155B1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20155b;
/* rgb */ color: rgb(32, 21, 91);
/* oklch */ color: oklch(26.4% 0.118 281.8);
Tailwind
colors: {
  custom: {
    50: '#64538a',
    500: '#20155b',
    950: '#000000',
  },
}
SCSS
$custom: #20155b;
$custom-light: #64538a;
$custom-dark: #000000;
JSON
{
  "hex": "#20155b",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 249.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26389,
    "c": 0.11788,
    "h": 281.8
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#20155B
secondary
#849239
accent
#E642CC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20155B

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

Preview Lab → · Contrast checker → · Palette generator →

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