#340B31#340B31

#340B31 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.084 H 330.9°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#340B31
RGBrgb(52, 11, 49)
HSLhsl(304, 65%, 12%)
HSVhsv(304, 79%, 20%)
CMYKcmyk(0%, 78.8%, 5.8%, 79.6%)
CIE-LABlab(10.49, 25.89, -14.90)
CIE-LCHlch(10.49, 29.87, 330.08°)
OKLaboklab(23.94% 0.0737 -0.041)
OKLCHoklch(23.94% 0.084 330.9)
XYZxyz(2.0902, 1.1913, 3.0250)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B31 #0B340E
analogous
#220B34 #340B31 #340B1D
triadic
#340B31 #31340B #0B3134
tetradic
#340B31 #34220B #0B340E #0B1D34
square
#340B31 #34220B #0B340E #0B1D34
split-complementary
#340B31 #1D340B #0B3422
monochromatic
#190518 #190518 #340B31 #671661 #992090

Accessibility & contrast

On white

16.96
#340B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B31
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B31#FFFFFF#000000##FFFFFF
##340B311.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081932
Deuteranopia (green-blind)
#171E30
Tritanopia (blue-blind)
#360F1C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340b31;
/* rgb */ color: rgb(52, 11, 49);
/* oklch */ color: oklch(23.9% 0.084 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e69',
    500: '#340b31',
    950: '#000000',
  },
}
SCSS
$custom: #340b31;
$custom-light: #6d4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#340b31",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 304.39,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23941,
    "c": 0.08431,
    "h": 330.9
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#340B31
secondary
#2A712F
accent
#E84C40
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340B31

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

Preview Lab → · Contrast checker → · Palette generator →

#340B31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva