#3B0C52#3B0C52

#3B0C52 is a dark, vivid purple. Relative luminance 0.018; OKLCH L 27.8% C 0.120 H 311.4°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#3B0C52
RGBrgb(59, 12, 82)
HSLhsl(280, 74%, 18%)
HSVhsv(280, 85%, 32%)
CMYKcmyk(28%, 85.4%, 0%, 67.8%)
CIE-LABlab(14.41, 34.59, -31.84)
CIE-LCHlch(14.41, 47.01, 317.37°)
OKLaboklab(27.78% 0.0795 -0.0902)
OKLCHoklch(27.78% 0.12 311.4)
XYZxyz(3.4578, 1.8020, 8.1467)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0C52 #23520C
analogous
#180C52 #3B0C52 #520C46
triadic
#3B0C52 #523B0C #0C523B
tetradic
#3B0C52 #52180C #23520C #0C4652
square
#3B0C52 #52180C #23520C #0C4652
split-complementary
#3B0C52 #46520C #0C5218
monochromatic
#13041B #15041D #3B0C52 #611487 #881CBD

Accessibility & contrast

On white

15.44
#3B0C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3B0C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0C52
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0C52#FFFFFF#000000##FFFFFF
##3B0C521.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#381D2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3b0c52;
/* rgb */ color: rgb(59, 12, 82);
/* oklch */ color: oklch(27.8% 0.120 311.4);
Tailwind
colors: {
  custom: {
    50: '#745183',
    500: '#3b0c52',
    950: '#000000',
  },
}
SCSS
$custom: #3b0c52;
$custom-light: #745183;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0c52",
  "rgb": {
    "r": 59,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 280.286,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27778,
    "c": 0.12024,
    "h": 311.4
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#3B0C52
secondary
#4C8D2C
accent
#F13774
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3B0C52

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

Preview Lab → · Contrast checker → · Palette generator →

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