#20154B#20154B

#20154B is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.095 H 286.6°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#20154B
RGBrgb(32, 21, 75)
HSLhsl(252, 56%, 19%)
HSVhsv(252, 72%, 29%)
CMYKcmyk(57.3%, 72%, 0%, 70.6%)
CIE-LABlab(11.63, 21.95, -31.73)
CIE-LCHlch(11.63, 38.58, 304.68°)
OKLaboklab(24.76% 0.0271 -0.091)
OKLCHoklch(24.76% 0.095 286.6)
XYZxyz(2.1335, 1.3513, 6.8037)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20154B #404B15
analogous
#15254B #20154B #3B154B
triadic
#20154B #4B2015 #154B20
tetradic
#20154B #4B1525 #404B15 #154B3B
square
#20154B #4B1525 #404B15 #154B3B
split-complementary
#20154B #4B3B15 #254B15
monochromatic
#0A0718 #0C081B #20154B #34227B #4930AB

Accessibility & contrast

On white

16.53
#20154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20154B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20154B#FFFFFF#000000##FFFFFF
##20154B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#10222D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #20154b;
/* rgb */ color: rgb(32, 21, 75);
/* oklch */ color: oklch(24.8% 0.095 286.6);
Tailwind
colors: {
  custom: {
    50: '#60537e',
    500: '#20154b',
    950: '#000000',
  },
}
SCSS
$custom: #20154b;
$custom-light: #60537e;
$custom-dark: #000000;
JSON
{
  "hex": "#20154b",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 252.222,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24757,
    "c": 0.09498,
    "h": 286.6
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#20154B
secondary
#748339
accent
#E048C1
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20154B

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

Preview Lab → · Contrast checker → · Palette generator →

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