#20155C#20155C

#20155C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.5% C 0.119 H 281.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#20155C
RGBrgb(32, 21, 92)
HSLhsl(249, 63%, 22%)
HSVhsv(249, 77%, 36%)
CMYKcmyk(65.2%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.33, 27.92, -40.53)
CIE-LCHlch(13.33, 49.22, 304.56°)
OKLaboklab(26.5% 0.024 -0.1168)
OKLCHoklch(26.5% 0.119 281.6)
XYZxyz(2.7950, 1.6159, 10.2878)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155C #515C15
analogous
#152D5C #20155C #44155C
triadic
#20155C #5C2015 #155C20
tetradic
#20155C #5C152D #515C15 #155C44
square
#20155C #5C152D #515C15 #155C44
split-complementary
#20155C #5C4415 #2D5C15
monochromatic
#090619 #0F0A2A #20155C #31208E #432CC0

Accessibility & contrast

On white

15.87
#20155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20155C
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155C#FFFFFF#000000##FFFFFF
##20155C1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20155c;
/* rgb */ color: rgb(32, 21, 92);
/* oklch */ color: oklch(26.5% 0.119 281.6);
Tailwind
colors: {
  custom: {
    50: '#64548b',
    500: '#20155c',
    950: '#000000',
  },
}
SCSS
$custom: #20155c;
$custom-light: #64548b;
$custom-dark: #000000;
JSON
{
  "hex": "#20155c",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 249.296,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26496,
    "c": 0.11927,
    "h": 281.6
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20155C

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

Preview Lab → · Contrast checker → · Palette generator →

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