#340E31#340E31

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

Color values

HEX#340E31
RGBrgb(52, 14, 49)
HSLhsl(305, 58%, 13%)
HSVhsv(305, 73%, 20%)
CMYKcmyk(0%, 73.1%, 5.8%, 79.6%)
CIE-LABlab(11.04, 24.38, -14.04)
CIE-LCHlch(11.04, 28.14, 330.06°)
OKLaboklab(24.34% 0.0693 -0.0385)
OKLCHoklch(24.34% 0.079 330.9)
XYZxyz(2.1276, 1.2660, 3.0374)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E31 #0E3411
analogous
#240E34 #340E31 #340E1E
triadic
#340E31 #31340E #0E3134
tetradic
#340E31 #34240E #0E3411 #0E1E34
square
#340E31 #34240E #0E3411 #0E1E34
split-complementary
#340E31 #1E340E #0E3424
monochromatic
#180617 #180617 #340E31 #641B5E #94288C

Accessibility & contrast

On white

16.76
#340E31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340E31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E31
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E31#FFFFFF#000000##FFFFFF
##340E311.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1A32
Deuteranopia (green-blind)
#181F30
Tritanopia (blue-blind)
#36121D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340e31;
/* rgb */ color: rgb(52, 14, 49);
/* oklch */ color: oklch(24.3% 0.079 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f69',
    500: '#340e31',
    950: '#000000',
  },
}
SCSS
$custom: #340e31;
$custom-light: #6d4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#340e31",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 49
  },
  "hsl": {
    "h": 304.737,
    "s": 57.576,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24335,
    "c": 0.07933,
    "h": 330.9
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#340E31
secondary
#2F6F34
accent
#E15347
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340E31

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

Preview Lab → · Contrast checker → · Palette generator →

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