#20154D#20154D

#20154D is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.098 H 285.9°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#20154D
RGBrgb(32, 21, 77)
HSLhsl(252, 57%, 19%)
HSVhsv(252, 73%, 30%)
CMYKcmyk(58.4%, 72.7%, 0%, 69.8%)
CIE-LABlab(11.82, 22.65, -32.80)
CIE-LCHlch(11.82, 39.86, 304.63°)
OKLaboklab(24.95% 0.0268 -0.0942)
OKLCHoklch(24.95% 0.098 285.9)
XYZxyz(2.2030, 1.3791, 7.1699)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20154D #424D15
analogous
#15264D #20154D #3C154D
triadic
#20154D #4D2015 #154D20
tetradic
#20154D #4D1526 #424D15 #154D3C
square
#20154D #4D1526 #424D15 #154D3C
split-complementary
#20154D #4D3C15 #264D15
monochromatic
#0A0718 #0C081D #20154D #34227D #482FAD

Accessibility & contrast

On white

16.46
#20154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#20154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20154D
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20154D#FFFFFF#000000##FFFFFF
##20154D1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#0E232E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20154d;
/* rgb */ color: rgb(32, 21, 77);
/* oklch */ color: oklch(25.0% 0.098 285.9);
Tailwind
colors: {
  custom: {
    50: '#61537f',
    500: '#20154d',
    950: '#000000',
  },
}
SCSS
$custom: #20154d;
$custom-light: #61537f;
$custom-dark: #000000;
JSON
{
  "hex": "#20154d",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 251.786,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24951,
    "c": 0.09793,
    "h": 285.9
  },
  "luminance": 0.01379
}

Semantic roles & 50–950 ramp

primary
#20154D
secondary
#768539
accent
#E047C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20154D

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

Preview Lab → · Contrast checker → · Palette generator →

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