#340F2F#340F2F

#340F2F is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.076 H 333.3°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#340F2F
RGBrgb(52, 15, 47)
HSLhsl(308, 55%, 13%)
HSVhsv(308, 71%, 20%)
CMYKcmyk(0%, 71.2%, 9.6%, 79.6%)
CIE-LABlab(11.11, 23.43, -12.46)
CIE-LCHlch(11.11, 26.54, 332.00°)
OKLaboklab(24.35% 0.0675 -0.034)
OKLCHoklch(24.35% 0.076 333.3)
XYZxyz(2.1001, 1.2771, 2.8247)
Luminance0.0128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F2F #0F3414
analogous
#260F34 #340F2F #340F1C
triadic
#340F2F #2F340F #0F2F34
tetradic
#340F2F #34260F #0F3414 #0F1C34
square
#340F2F #34260F #0F3414 #0F1C34
split-complementary
#340F2F #1C340F #0F3426
monochromatic
#180715 #180715 #340F2F #631D5A #932A85

Accessibility & contrast

On white

16.73
#340F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F2F
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F2F#FFFFFF#000000##FFFFFF
##340F2F1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#1A202E
Tritanopia (blue-blind)
#37121D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f2f;
/* rgb */ color: rgb(52, 15, 47);
/* oklch */ color: oklch(24.4% 0.076 333.3);
Tailwind
colors: {
  custom: {
    50: '#6d5067',
    500: '#340f2f',
    950: '#000000',
  },
}
SCSS
$custom: #340f2f;
$custom-light: #6d5067;
$custom-dark: #000000;
JSON
{
  "hex": "#340f2f",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 308.108,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24354,
    "c": 0.07556,
    "h": 333.3
  },
  "luminance": 0.01277
}

Semantic roles & 50–950 ramp

primary
#340F2F
secondary
#316E39
accent
#DF5D49
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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