#20145C#20145C

#20145C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.3% C 0.120 H 281.9°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#20145C
RGBrgb(32, 20, 92)
HSLhsl(250, 64%, 22%)
HSVhsv(250, 78%, 36%)
CMYKcmyk(65.2%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.11, 28.54, -40.89)
CIE-LCHlch(13.11, 49.86, 304.91°)
OKLaboklab(26.34% 0.0248 -0.1179)
OKLCHoklch(26.34% 0.12 281.9)
XYZxyz(2.7770, 1.5799, 10.2818)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145C #505C14
analogous
#142C5C #20145C #44145C
triadic
#20145C #5C2014 #145C20
tetradic
#20145C #5C142C #505C14 #145C44
square
#20145C #5C142C #505C14 #145C44
split-complementary
#20145C #5C4414 #2C5C14
monochromatic
#090519 #0F092A #20145C #311F8E #432AC1

Accessibility & contrast

On white

15.96
#20145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20145C
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145C#FFFFFF#000000##FFFFFF
##20145C1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20145c;
/* rgb */ color: rgb(32, 20, 92);
/* oklch */ color: oklch(26.3% 0.120 281.9);
Tailwind
colors: {
  custom: {
    50: '#64538b',
    500: '#20145c',
    950: '#000000',
  },
}
SCSS
$custom: #20145c;
$custom-light: #64538b;
$custom-dark: #000000;
JSON
{
  "hex": "#20145c",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 250,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2634,
    "c": 0.12046,
    "h": 281.9
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#20145C
secondary
#849438
accent
#E741CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20145C

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

Preview Lab → · Contrast checker → · Palette generator →

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