#20154E#20154E

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

Color values

HEX#20154E
RGBrgb(32, 21, 78)
HSLhsl(252, 58%, 19%)
HSVhsv(252, 73%, 31%)
CMYKcmyk(59%, 73.1%, 0%, 69.4%)
CIE-LABlab(11.91, 23.01, -33.33)
CIE-LCHlch(11.91, 40.50, 304.61°)
OKLaboklab(25.05% 0.0267 -0.0957)
OKLCHoklch(25.05% 0.099 285.6)
XYZxyz(2.2386, 1.3933, 7.3572)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20154E #434E15
analogous
#15274E #20154E #3D154E
triadic
#20154E #4E2015 #154E20
tetradic
#20154E #4E1527 #434E15 #154E3D
square
#20154E #4E1527 #434E15 #154E3D
split-complementary
#20154E #4E3D15 #274E15
monochromatic
#0A0618 #0C081E #20154E #34227E #482FAE

Accessibility & contrast

On white

16.42
#20154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20154E
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20154E#FFFFFF#000000##FFFFFF
##20154E1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#0D232F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20154e;
/* rgb */ color: rgb(32, 21, 78);
/* oklch */ color: oklch(25.1% 0.099 285.6);
Tailwind
colors: {
  custom: {
    50: '#615380',
    500: '#20154e',
    950: '#000000',
  },
}
SCSS
$custom: #20154e;
$custom-light: #615380;
$custom-dark: #000000;
JSON
{
  "hex": "#20154e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 251.579,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2505,
    "c": 0.0994,
    "h": 285.6
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#20154E
secondary
#778639
accent
#E147C3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #20154E

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

Preview Lab → · Contrast checker → · Palette generator →

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