#32138E#32138E

#32138E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.180 H 282.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#32138E
RGBrgb(50, 19, 142)
HSLhsl(255, 76%, 32%)
HSVhsv(255, 87%, 56%)
CMYKcmyk(64.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(20.43, 46.72, -61.03)
CIE-LCHlch(20.43, 76.86, 307.43°)
OKLaboklab(33.55% 0.0382 -0.176)
OKLCHoklch(33.55% 0.18 282.2)
XYZxyz(6.4292, 3.0964, 25.8448)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32138E #6F8E13
analogous
#13328E #32138E #70138E
triadic
#32138E #8E3213 #138E32
tetradic
#32138E #8E1332 #6F8E13 #138E70
square
#32138E #8E1332 #6F8E13 #138E70
split-complementary
#32138E #8E7013 #328E13
monochromatic
#0C0522 #1F0C58 #32138E #451AC4 #6337E4

Accessibility & contrast

On white

12.97
#32138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#32138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32138E
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32138E#FFFFFF#000000##FFFFFF
##32138E1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #32138e;
/* rgb */ color: rgb(50, 19, 142);
/* oklch */ color: oklch(33.5% 0.180 282.2);
Tailwind
colors: {
  custom: {
    50: '#7858b0',
    500: '#32138e',
    950: '#000000',
  },
}
SCSS
$custom: #32138e;
$custom-light: #7858b0;
$custom-dark: #000000;
JSON
{
  "hex": "#32138e",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 255.122,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33548,
    "c": 0.18014,
    "h": 282.2
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#32138E
secondary
#A0C23B
accent
#F335C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #32138E

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

Preview Lab → · Contrast checker → · Palette generator →

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