#340D2F#340D2F

#340D2F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.079 H 333.2°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#340D2F
RGBrgb(52, 13, 47)
HSLhsl(308, 60%, 13%)
HSVhsv(308, 75%, 20%)
CMYKcmyk(0%, 75%, 9.6%, 79.6%)
CIE-LABlab(10.73, 24.50, -13.06)
CIE-LCHlch(10.73, 27.76, 331.93°)
OKLaboklab(24.07% 0.0706 -0.0357)
OKLCHoklch(24.07% 0.079 333.2)
XYZxyz(2.0732, 1.2233, 2.8157)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D2F #0D3412
analogous
#250D34 #340D2F #340D1B
triadic
#340D2F #2F340D #0D2F34
tetradic
#340D2F #34250D #0D3412 #0D1B34
square
#340D2F #34250D #0D3412 #0D1B34
split-complementary
#340D2F #1B340D #0D3425
monochromatic
#180616 #180616 #340D2F #65195B #962588

Accessibility & contrast

On white

16.87
#340D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D2F
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D2F#FFFFFF#000000##FFFFFF
##340D2F1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#191F2E
Tritanopia (blue-blind)
#37101C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340d2f;
/* rgb */ color: rgb(52, 13, 47);
/* oklch */ color: oklch(24.1% 0.079 333.2);
Tailwind
colors: {
  custom: {
    50: '#6d4f67',
    500: '#340d2f',
    950: '#000000',
  },
}
SCSS
$custom: #340d2f;
$custom-light: #6d4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#340d2f",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 307.692,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24072,
    "c": 0.07909,
    "h": 333.2
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#340D2F
secondary
#2D6F36
accent
#E35945
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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