#20154F#20154F

#20154F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.101 H 285.3°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#20154F
RGBrgb(32, 21, 79)
HSLhsl(251, 58%, 20%)
HSVhsv(251, 73%, 31%)
CMYKcmyk(59.5%, 73.4%, 0%, 69%)
CIE-LABlab(12.01, 23.36, -33.86)
CIE-LCHlch(12.01, 41.14, 304.60°)
OKLaboklab(25.15% 0.0265 -0.0973)
OKLCHoklch(25.15% 0.101 285.3)
XYZxyz(2.2747, 1.4078, 7.5475)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20154F #444F15
analogous
#15274F #20154F #3D154F
triadic
#20154F #4F2015 #154F20
tetradic
#20154F #4F1527 #444F15 #154F3D
square
#20154F #4F1527 #444F15 #154F3D
split-complementary
#20154F #4F3D15 #274F15
monochromatic
#0A0618 #0C081F #20154F #34227F #472FB0

Accessibility & contrast

On white

16.39
#20154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20154F
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20154F#FFFFFF#000000##FFFFFF
##20154F1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#0C2430
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #20154f;
/* rgb */ color: rgb(32, 21, 79);
/* oklch */ color: oklch(25.1% 0.101 285.3);
Tailwind
colors: {
  custom: {
    50: '#615381',
    500: '#20154f',
    950: '#000000',
  },
}
SCSS
$custom: #20154f;
$custom-light: #615381;
$custom-dark: #000000;
JSON
{
  "hex": "#20154f",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 251.379,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25149,
    "c": 0.10086,
    "h": 285.3
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#20154F
secondary
#788739
accent
#E147C4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20154F

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

Preview Lab → · Contrast checker → · Palette generator →

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