#340F30#340F30

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

Color values

HEX#340F30
RGBrgb(52, 15, 48)
HSLhsl(306, 55%, 13%)
HSVhsv(306, 71%, 20%)
CMYKcmyk(0%, 71.2%, 7.7%, 79.6%)
CIE-LABlab(11.17, 23.64, -13.10)
CIE-LCHlch(11.17, 27.02, 331.00°)
OKLaboklab(24.42% 0.0677 -0.0358)
OKLCHoklch(24.42% 0.077 332.1)
XYZxyz(2.1205, 1.2853, 2.9321)
Luminance0.0129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F30 #0F3413
analogous
#250F34 #340F30 #340F1D
triadic
#340F30 #30340F #0F3034
tetradic
#340F30 #34250F #0F3413 #0F1D34
square
#340F30 #34250F #0F3413 #0F1D34
split-complementary
#340F30 #1D340F #0F3425
monochromatic
#180716 #180716 #340F30 #631D5C #932A88

Accessibility & contrast

On white

16.71
#340F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F30
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F30#FFFFFF#000000##FFFFFF
##340F301.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A31
Deuteranopia (green-blind)
#19202F
Tritanopia (blue-blind)
#36121D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f30;
/* rgb */ color: rgb(52, 15, 48);
/* oklch */ color: oklch(24.4% 0.077 332.1);
Tailwind
colors: {
  custom: {
    50: '#6d5068',
    500: '#340f30',
    950: '#000000',
  },
}
SCSS
$custom: #340f30;
$custom-light: #6d5068;
$custom-dark: #000000;
JSON
{
  "hex": "#340f30",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 48
  },
  "hsl": {
    "h": 306.486,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24415,
    "c": 0.07656,
    "h": 332.1
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#340F30
secondary
#316E37
accent
#DF5949
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F30

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

Preview Lab → · Contrast checker → · Palette generator →

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