#20154C#20154C

#20154C is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.096 H 286.2°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#20154C
RGBrgb(32, 21, 76)
HSLhsl(252, 57%, 19%)
HSVhsv(252, 72%, 30%)
CMYKcmyk(57.9%, 72.4%, 0%, 70.2%)
CIE-LABlab(11.72, 22.30, -32.27)
CIE-LCHlch(11.72, 39.22, 304.65°)
OKLaboklab(24.85% 0.027 -0.0926)
OKLCHoklch(24.85% 0.096 286.2)
XYZxyz(2.1679, 1.3651, 6.9853)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20154C #414C15
analogous
#15264C #20154C #3C154C
triadic
#20154C #4C2015 #154C20
tetradic
#20154C #4C1526 #414C15 #154C3C
square
#20154C #4C1526 #414C15 #154C3C
split-complementary
#20154C #4C3C15 #264C15
monochromatic
#0A0718 #0C081C #20154C #34227C #482FAC

Accessibility & contrast

On white

16.50
#20154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#20154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20154C
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20154C#FFFFFF#000000##FFFFFF
##20154C1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#0F232E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20154c;
/* rgb */ color: rgb(32, 21, 76);
/* oklch */ color: oklch(24.9% 0.096 286.2);
Tailwind
colors: {
  custom: {
    50: '#61537f',
    500: '#20154c',
    950: '#000000',
  },
}
SCSS
$custom: #20154c;
$custom-light: #61537f;
$custom-dark: #000000;
JSON
{
  "hex": "#20154c",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 252,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24854,
    "c": 0.09646,
    "h": 286.2
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#20154C
secondary
#758439
accent
#E048C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20154C

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

Preview Lab → · Contrast checker → · Palette generator →

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