#3B0840#3B0840

#3B0840 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.107 H 324.0°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#3B0840
RGBrgb(59, 8, 64)
HSLhsl(295, 78%, 14%)
HSVhsv(295, 88%, 25%)
CMYKcmyk(7.8%, 87.5%, 0%, 74.9%)
CIE-LABlab(12.44, 32.12, -22.52)
CIE-LCHlch(12.44, 39.23, 324.97°)
OKLaboklab(25.93% 0.0866 -0.0628)
OKLCHoklch(25.93% 0.107 324)
XYZxyz(2.8158, 1.4738, 4.9857)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0840 #0D4008
analogous
#1F0840 #3B0840 #400829
triadic
#3B0840 #403B08 #08403B
tetradic
#3B0840 #401F08 #0D4008 #082940
square
#3B0840 #401F08 #0D4008 #082940
split-complementary
#3B0840 #294008 #08401F
monochromatic
#19031B #19031B #3B0840 #6D0F76 #9F16AD

Accessibility & contrast

On white

16.22
#3B0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3B0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0840
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0840#FFFFFF#000000##FFFFFF
##3B08401.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#13223F
Tritanopia (blue-blind)
#3C1324
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3b0840;
/* rgb */ color: rgb(59, 8, 64);
/* oklch */ color: oklch(25.9% 0.107 324.0);
Tailwind
colors: {
  custom: {
    50: '#734f75',
    500: '#3b0840',
    950: '#000000',
  },
}
SCSS
$custom: #3b0840;
$custom-light: #734f75;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0840",
  "rgb": {
    "r": 59,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 294.643,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25933,
    "c": 0.10697,
    "h": 324
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#3B0840
secondary
#2D7E25
accent
#F43445
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3B0840

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

Preview Lab → · Contrast checker → · Palette generator →

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