#340F34#340F34

#340F34 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.081 H 327.7°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#340F34
RGBrgb(52, 15, 52)
HSLhsl(300, 55%, 13%)
HSVhsv(300, 71%, 20%)
CMYKcmyk(0%, 71.2%, 0%, 79.6%)
CIE-LABlab(11.41, 24.48, -15.63)
CIE-LCHlch(11.41, 29.05, 327.44°)
OKLaboklab(24.67% 0.0682 -0.0431)
OKLCHoklch(24.67% 0.081 327.7)
XYZxyz(2.2068, 1.3198, 3.3867)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F34 #0F340F
analogous
#210F34 #340F34 #340F21
triadic
#340F34 #34340F #0F3434
tetradic
#340F34 #34210F #0F340F #0F2134
square
#340F34 #34210F #0F340F #0F2134
split-complementary
#340F34 #21340F #0F3421
monochromatic
#180718 #180718 #340F34 #631D63 #932A93

Accessibility & contrast

On white

16.61
#340F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F34
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F34#FFFFFF#000000##FFFFFF
##340F341.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1B35
Deuteranopia (green-blind)
#182033
Tritanopia (blue-blind)
#36141F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f34;
/* rgb */ color: rgb(52, 15, 52);
/* oklch */ color: oklch(24.7% 0.081 327.7);
Tailwind
colors: {
  custom: {
    50: '#6d506b',
    500: '#340f34',
    950: '#000000',
  },
}
SCSS
$custom: #340f34;
$custom-light: #6d506b;
$custom-dark: #000000;
JSON
{
  "hex": "#340f34",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24669,
    "c": 0.08067,
    "h": 327.7
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#340F34
secondary
#316E31
accent
#DF4949
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F34

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

Preview Lab → · Contrast checker → · Palette generator →

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