#3B1152#3B1152

#3B1152 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.114 H 310.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#3B1152
RGBrgb(59, 17, 82)
HSLhsl(279, 66%, 19%)
HSVhsv(279, 79%, 32%)
CMYKcmyk(28%, 79.3%, 0%, 67.8%)
CIE-LABlab(15.17, 32.42, -30.62)
CIE-LCHlch(15.17, 44.59, 316.64°)
OKLaboklab(28.31% 0.0743 -0.0867)
OKLCHoklch(28.31% 0.114 310.6)
XYZxyz(3.5268, 1.9400, 8.1697)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1152 #285211
analogous
#1A1152 #3B1152 #521149
triadic
#3B1152 #523B11 #11523B
tetradic
#3B1152 #521A11 #285211 #114952
square
#3B1152 #521A11 #285211 #114952
split-complementary
#3B1152 #495211 #11521A
monochromatic
#120519 #17061F #3B1152 #5F1C85 #8426B7

Accessibility & contrast

On white

15.13
#3B1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3B1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1152
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1152#FFFFFF#000000##FFFFFF
##3B11521.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#382030
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3b1152;
/* rgb */ color: rgb(59, 17, 82);
/* oklch */ color: oklch(28.3% 0.114 310.6);
Tailwind
colors: {
  custom: {
    50: '#745483',
    500: '#3b1152',
    950: '#000000',
  },
}
SCSS
$custom: #3b1152;
$custom-light: #745483;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1152",
  "rgb": {
    "r": 59,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 278.769,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28312,
    "c": 0.11415,
    "h": 310.6
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#3B1152
secondary
#538B34
accent
#E93F7B
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3B1152

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

Preview Lab → · Contrast checker → · Palette generator →

#3B1152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva