#20135E#20135E

#20135E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.124 H 281.6°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#20135E
RGBrgb(32, 19, 94)
HSLhsl(250, 66%, 22%)
HSVhsv(250, 80%, 37%)
CMYKcmyk(66%, 79.8%, 0%, 63.1%)
CIE-LABlab(13.11, 29.82, -42.22)
CIE-LCHlch(13.11, 51.69, 305.23°)
OKLaboklab(26.41% 0.025 -0.1218)
OKLCHoklch(26.41% 0.124 281.6)
XYZxyz(2.8483, 1.5808, 10.7425)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20135E #515E13
analogous
#132C5E #20135E #46135E
triadic
#20135E #5E2013 #135E20
tetradic
#20135E #5E132C #515E13 #135E46
square
#20135E #5E132C #515E13 #135E46
split-complementary
#20135E #5E4613 #2C5E13
monochromatic
#090519 #0F092B #20135E #311D91 #4328C4

Accessibility & contrast

On white

15.96
#20135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20135E
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20135E#FFFFFF#000000##FFFFFF
##20135E1.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)
#002460
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20135e;
/* rgb */ color: rgb(32, 19, 94);
/* oklch */ color: oklch(26.4% 0.124 281.6);
Tailwind
colors: {
  custom: {
    50: '#65528d',
    500: '#20135e',
    950: '#000000',
  },
}
SCSS
$custom: #20135e;
$custom-light: #65528d;
$custom-dark: #000000;
JSON
{
  "hex": "#20135e",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 250.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2641,
    "c": 0.12432,
    "h": 281.6
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#20135E
secondary
#859637
accent
#E93FCC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20135E

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

Preview Lab → · Contrast checker → · Palette generator →

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