#3B0540#3B0540

#3B0540 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.111 H 324.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#3B0540
RGBrgb(59, 5, 64)
HSLhsl(295, 86%, 14%)
HSVhsv(295, 92%, 25%)
CMYKcmyk(7.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(12.02, 33.36, -23.20)
CIE-LCHlch(12.02, 40.63, 325.18°)
OKLaboklab(25.63% 0.0899 -0.0648)
OKLCHoklch(25.63% 0.111 324.2)
XYZxyz(2.7832, 1.4087, 4.9748)
Luminance0.0141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0540 #0A4005
analogous
#1D0540 #3B0540 #400527
triadic
#3B0540 #403B05 #05403B
tetradic
#3B0540 #401D05 #0A4005 #052740
square
#3B0540 #401D05 #0A4005 #052740
split-complementary
#3B0540 #274005 #05401D
monochromatic
#1A021C #1A021C #3B0540 #6F0979 #A40EB2

Accessibility & contrast

On white

16.38
#3B0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#3B0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0540
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0540#FFFFFF#000000##FFFFFF
##3B05401.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#3C1123
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3b0540;
/* rgb */ color: rgb(59, 5, 64);
/* oklch */ color: oklch(25.6% 0.111 324.2);
Tailwind
colors: {
  custom: {
    50: '#744d75',
    500: '#3b0540',
    950: '#000000',
  },
}
SCSS
$custom: #3b0540;
$custom-light: #744d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0540",
  "rgb": {
    "r": 59,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 294.915,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25632,
    "c": 0.11086,
    "h": 324.2
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#3B0540
secondary
#288120
accent
#FC2C3E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3B0540

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

Preview Lab → · Contrast checker → · Palette generator →

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