#3B0C4F#3B0C4F

#3B0C4F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 313.2°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#3B0C4F
RGBrgb(59, 12, 79)
HSLhsl(282, 74%, 18%)
HSVhsv(282, 85%, 31%)
CMYKcmyk(25.3%, 84.8%, 0%, 69%)
CIE-LABlab(14.16, 33.88, -30.20)
CIE-LCHlch(14.16, 45.38, 318.28°)
OKLaboklab(27.52% 0.0802 -0.0854)
OKLCHoklch(27.52% 0.117 313.2)
XYZxyz(3.3461, 1.7574, 7.5586)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0C4F #204F0C
analogous
#1A0C4F #3B0C4F #4F0C41
triadic
#3B0C4F #4F3B0C #0C4F3B
tetradic
#3B0C4F #4F1A0C #204F0C #0C414F
square
#3B0C4F #4F1A0C #204F0C #0C414F
split-complementary
#3B0C4F #414F0C #0C4F1A
monochromatic
#14041B #14041B #3B0C4F #631484 #8A1CB9

Accessibility & contrast

On white

15.54
#3B0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3B0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0C4F
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0C4F#FFFFFF#000000##FFFFFF
##3B0C4F1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#05254E
Tritanopia (blue-blind)
#391C2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3b0c4f;
/* rgb */ color: rgb(59, 12, 79);
/* oklch */ color: oklch(27.5% 0.117 313.2);
Tailwind
colors: {
  custom: {
    50: '#745181',
    500: '#3b0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #3b0c4f;
$custom-light: #745181;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0c4f",
  "rgb": {
    "r": 59,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 282.09,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2752,
    "c": 0.11713,
    "h": 313.2
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#3B0C4F
secondary
#488B2C
accent
#F0386F
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3B0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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