#340F31#340F31

#340F31 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.078 H 330.9°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#340F31
RGBrgb(52, 15, 49)
HSLhsl(305, 55%, 13%)
HSVhsv(305, 71%, 20%)
CMYKcmyk(0%, 71.2%, 5.8%, 79.6%)
CIE-LABlab(11.23, 23.84, -13.74)
CIE-LCHlch(11.23, 27.52, 330.05°)
OKLaboklab(24.48% 0.0678 -0.0377)
OKLCHoklch(24.48% 0.078 330.9)
XYZxyz(2.1414, 1.2936, 3.0420)
Luminance0.0129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F31 #0F3412
analogous
#240F34 #340F31 #340F1E
triadic
#340F31 #31340F #0F3134
tetradic
#340F31 #34240F #0F3412 #0F1E34
square
#340F31 #34240F #0F3412 #0F1E34
split-complementary
#340F31 #1E340F #0F3424
monochromatic
#180716 #180716 #340F31 #631D5E #932A8B

Accessibility & contrast

On white

16.69
#340F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F31
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F31#FFFFFF#000000##FFFFFF
##340F311.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B32
Deuteranopia (green-blind)
#192030
Tritanopia (blue-blind)
#36131E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f31;
/* rgb */ color: rgb(52, 15, 49);
/* oklch */ color: oklch(24.5% 0.078 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d5069',
    500: '#340f31',
    950: '#000000',
  },
}
SCSS
$custom: #340f31;
$custom-light: #6d5069;
$custom-dark: #000000;
JSON
{
  "hex": "#340f31",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 304.865,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24477,
    "c": 0.07756,
    "h": 330.9
  },
  "luminance": 0.01293
}

Semantic roles & 50–950 ramp

primary
#340F31
secondary
#316E36
accent
#DF5549
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F31

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

Preview Lab → · Contrast checker → · Palette generator →

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