#340E3D#340E3D

#340E3D is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.092 H 319.4°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#340E3D
RGBrgb(52, 14, 61)
HSLhsl(289, 63%, 15%)
HSVhsv(289, 77%, 24%)
CMYKcmyk(14.8%, 77%, 0%, 76.1%)
CIE-LABlab(11.83, 27.04, -21.43)
CIE-LCHlch(11.83, 34.50, 321.59°)
OKLaboklab(25.17% 0.0699 -0.06)
OKLCHoklch(25.17% 0.092 319.4)
XYZxyz(2.4154, 1.3812, 4.5533)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E3D #173D0E
analogous
#1D0E3D #340E3D #3D0E2F
triadic
#340E3D #3D340E #0E3D34
tetradic
#340E3D #3D1D0E #173D0E #0E2F3D
square
#340E3D #3D1D0E #173D0E #0E2F3D
split-complementary
#340E3D #2F3D0E #0E3D1D
monochromatic
#150619 #150619 #340E3D #5E196F #8925A1

Accessibility & contrast

On white

16.46
#340E3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340E3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E3D
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E3D#FFFFFF#000000##FFFFFF
##340E3D1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3E
Deuteranopia (green-blind)
#11203C
Tritanopia (blue-blind)
#341624
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340e3d;
/* rgb */ color: rgb(52, 14, 61);
/* oklch */ color: oklch(25.2% 0.092 319.4);
Tailwind
colors: {
  custom: {
    50: '#6d5073',
    500: '#340e3d',
    950: '#000000',
  },
}
SCSS
$custom: #340e3d;
$custom-light: #6d5073;
$custom-dark: #000000;
JSON
{
  "hex": "#340e3d",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 61
  },
  "hsl": {
    "h": 288.511,
    "s": 62.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25168,
    "c": 0.09209,
    "h": 319.4
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#340E3D
secondary
#3D782F
accent
#E64261
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #340E3D

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

Preview Lab → · Contrast checker → · Palette generator →

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