#3B0842#3B0842

#3B0842 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.1% C 0.109 H 322.5°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#3B0842
RGBrgb(59, 8, 66)
HSLhsl(293, 78%, 15%)
HSVhsv(293, 88%, 26%)
CMYKcmyk(10.6%, 87.9%, 0%, 74.1%)
CIE-LABlab(12.59, 32.54, -23.69)
CIE-LCHlch(12.59, 40.25, 323.94°)
OKLaboklab(26.09% 0.0864 -0.0663)
OKLCHoklch(26.09% 0.109 322.5)
XYZxyz(2.8737, 1.4970, 5.2908)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0842 #0F4208
analogous
#1E0842 #3B0842 #42082C
triadic
#3B0842 #423B08 #08423B
tetradic
#3B0842 #421E08 #0F4208 #082C42
square
#3B0842 #421E08 #0F4208 #082C42
split-complementary
#3B0842 #2C4208 #08421E
monochromatic
#18031B #18031B #3B0842 #6C0F79 #9D15AF

Accessibility & contrast

On white

16.16
#3B0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3B0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0842
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0842#FFFFFF#000000##FFFFFF
##3B08421.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#112341
Tritanopia (blue-blind)
#3C1425
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3b0842;
/* rgb */ color: rgb(59, 8, 66);
/* oklch */ color: oklch(26.1% 0.109 322.5);
Tailwind
colors: {
  custom: {
    50: '#744f77',
    500: '#3b0842',
    950: '#000000',
  },
}
SCSS
$custom: #3b0842;
$custom-light: #744f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0842",
  "rgb": {
    "r": 59,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 292.759,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26085,
    "c": 0.10886,
    "h": 322.5
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#3B0842
secondary
#308025
accent
#F5334A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3B0842

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

Preview Lab → · Contrast checker → · Palette generator →

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