#20155F#20155F

#20155F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.123 H 280.9°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#20155F
RGBrgb(32, 21, 95)
HSLhsl(249, 64%, 23%)
HSVhsv(249, 78%, 37%)
CMYKcmyk(66.3%, 77.9%, 0%, 62.7%)
CIE-LABlab(13.65, 28.96, -42.01)
CIE-LCHlch(13.65, 51.03, 304.58°)
OKLaboklab(26.82% 0.0232 -0.1212)
OKLCHoklch(26.82% 0.123 280.9)
XYZxyz(2.9287, 1.6694, 10.9921)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155F #545F15
analogous
#152F5F #20155F #45155F
triadic
#20155F #5F2015 #155F20
tetradic
#20155F #5F152F #545F15 #155F45
square
#20155F #5F152F #545F15 #155F45
split-complementary
#20155F #5F4515 #2F5F15
monochromatic
#080619 #0F0A2D #20155F #312091 #422BC3

Accessibility & contrast

On white

15.74
#20155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20155F
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155F#FFFFFF#000000##FFFFFF
##20155F1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20155f;
/* rgb */ color: rgb(32, 21, 95);
/* oklch */ color: oklch(26.8% 0.123 280.9);
Tailwind
colors: {
  custom: {
    50: '#65548d',
    500: '#20155f',
    950: '#000000',
  },
}
SCSS
$custom: #20155f;
$custom-light: #65548d;
$custom-dark: #000000;
JSON
{
  "hex": "#20155f",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 248.919,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2682,
    "c": 0.12338,
    "h": 280.9
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#20155F
secondary
#89963A
accent
#E741CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20155F

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

Preview Lab → · Contrast checker → · Palette generator →

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