#20155D#20155D

#20155D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.121 H 281.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#20155D
RGBrgb(32, 21, 93)
HSLhsl(249, 63%, 22%)
HSVhsv(249, 77%, 36%)
CMYKcmyk(65.6%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.43, 28.27, -41.03)
CIE-LCHlch(13.43, 49.82, 304.57°)
OKLaboklab(26.6% 0.0237 -0.1183)
OKLCHoklch(26.6% 0.121 281.3)
XYZxyz(2.8390, 1.6335, 10.5195)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155D #525D15
analogous
#152E5D #20155D #44155D
triadic
#20155D #5D2015 #155D20
tetradic
#20155D #5D152E #525D15 #155D44
square
#20155D #5D152E #525D15 #155D44
split-complementary
#20155D #5D4415 #2E5D15
monochromatic
#090619 #0F0A2B #20155D #31208F #422CC1

Accessibility & contrast

On white

15.83
#20155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#20155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20155D
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155D#FFFFFF#000000##FFFFFF
##20155D1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20155d;
/* rgb */ color: rgb(32, 21, 93);
/* oklch */ color: oklch(26.6% 0.121 281.3);
Tailwind
colors: {
  custom: {
    50: '#64548c',
    500: '#20155d',
    950: '#000000',
  },
}
SCSS
$custom: #20155d;
$custom-light: #64548c;
$custom-dark: #000000;
JSON
{
  "hex": "#20155d",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 249.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26603,
    "c": 0.12064,
    "h": 281.3
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#20155D
secondary
#869439
accent
#E642CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20155D

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

Preview Lab → · Contrast checker → · Palette generator →

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