#3B0340#3B0340

#3B0340 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.4% C 0.114 H 324.4°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#3B0340
RGBrgb(59, 3, 64)
HSLhsl(295, 91%, 13%)
HSVhsv(295, 95%, 25%)
CMYKcmyk(7.8%, 95.3%, 0%, 74.9%)
CIE-LABlab(11.72, 34.21, -23.66)
CIE-LCHlch(11.72, 41.60, 325.33°)
OKLaboklab(25.43% 0.0923 -0.0662)
OKLCHoklch(25.43% 0.114 324.4)
XYZxyz(2.7615, 1.3653, 4.9676)
Luminance0.0137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B0340 #084003
analogous
#1C0340 #3B0340 #400326
triadic
#3B0340 #403B03 #03403B
tetradic
#3B0340 #401C03 #084003 #032640
square
#3B0340 #401C03 #084003 #032640
split-complementary
#3B0340 #264003 #03401C
monochromatic
#1B011D #1B011D #3B0340 #71067A #A708B5

Accessibility & contrast

On white

16.50
#3B0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#3B0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B0340
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B0340#FFFFFF#000000##FFFFFF
##3B03401.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#3C1023
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3b0340;
/* rgb */ color: rgb(59, 3, 64);
/* oklch */ color: oklch(25.4% 0.114 324.4);
Tailwind
colors: {
  custom: {
    50: '#744c75',
    500: '#3b0340',
    950: '#000000',
  },
}
SCSS
$custom: #3b0340;
$custom-light: #744c75;
$custom-dark: #000000;
JSON
{
  "hex": "#3b0340",
  "rgb": {
    "r": 59,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 295.082,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25428,
    "c": 0.11354,
    "h": 324.4
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#3B0340
secondary
#25821D
accent
#FF293A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080108
muted
#7B777B

Preview Lab

Preview with #3B0340

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

Preview Lab → · Contrast checker → · Palette generator →

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