#20135C#20135C

#20135C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.122 H 282.1°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#20135C
RGBrgb(32, 19, 92)
HSLhsl(251, 66%, 22%)
HSVhsv(251, 79%, 36%)
CMYKcmyk(65.2%, 79.3%, 0%, 63.9%)
CIE-LABlab(12.89, 29.14, -41.24)
CIE-LCHlch(12.89, 50.50, 305.24°)
OKLaboklab(26.19% 0.0256 -0.1189)
OKLCHoklch(26.19% 0.122 282.1)
XYZxyz(2.7597, 1.5453, 10.2760)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20135C #4F5C13
analogous
#132B5C #20135C #45135C
triadic
#20135C #5C2013 #135C20
tetradic
#20135C #5C132B #4F5C13 #135C45
square
#20135C #5C132B #4F5C13 #135C45
split-complementary
#20135C #5C4513 #2B5C13
monochromatic
#090519 #0E0929 #20135C #321D8F #4328C1

Accessibility & contrast

On white

16.04
#20135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#20135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20135C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20135C#FFFFFF#000000##FFFFFF
##20135C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20135c;
/* rgb */ color: rgb(32, 19, 92);
/* oklch */ color: oklch(26.2% 0.122 282.1);
Tailwind
colors: {
  custom: {
    50: '#64528b',
    500: '#20135c',
    950: '#000000',
  },
}
SCSS
$custom: #20135c;
$custom-light: #64528b;
$custom-dark: #000000;
JSON
{
  "hex": "#20135c",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 250.685,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26189,
    "c": 0.12163,
    "h": 282.1
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#20135C
secondary
#839437
accent
#E93FCB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20135C

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

Preview Lab → · Contrast checker → · Palette generator →

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