#340D31#340D31

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

Color values

HEX#340D31
RGBrgb(52, 13, 49)
HSLhsl(305, 60%, 13%)
HSVhsv(305, 75%, 20%)
CMYKcmyk(0%, 75%, 5.8%, 79.6%)
CIE-LABlab(10.85, 24.90, -14.34)
CIE-LCHlch(10.85, 28.73, 330.07°)
OKLaboklab(24.2% 0.0708 -0.0394)
OKLCHoklch(24.2% 0.081 330.9)
XYZxyz(2.1145, 1.2398, 3.0331)
Luminance0.0124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D31 #0D3410
analogous
#230D34 #340D31 #340D1E
triadic
#340D31 #31340D #0D3134
tetradic
#340D31 #34230D #0D3410 #0D1E34
square
#340D31 #34230D #0D3410 #0D1E34
split-complementary
#340D31 #1E340D #0D3423
monochromatic
#180617 #180617 #340D31 #65195F #96258D

Accessibility & contrast

On white

16.83
#340D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D31
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D31#FFFFFF#000000##FFFFFF
##340D311.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1A32
Deuteranopia (green-blind)
#181F30
Tritanopia (blue-blind)
#36111D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340d31;
/* rgb */ color: rgb(52, 13, 49);
/* oklch */ color: oklch(24.2% 0.081 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f69',
    500: '#340d31',
    950: '#000000',
  },
}
SCSS
$custom: #340d31;
$custom-light: #6d4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#340d31",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 49
  },
  "hsl": {
    "h": 304.615,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24198,
    "c": 0.08105,
    "h": 330.9
  },
  "luminance": 0.0124
}

Semantic roles & 50–950 ramp

primary
#340D31
secondary
#2D6F33
accent
#E35145
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340D31

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

Preview Lab → · Contrast checker → · Palette generator →

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