#340D38#340D38

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

Color values

HEX#340D38
RGBrgb(52, 13, 56)
HSLhsl(294, 62%, 14%)
HSVhsv(294, 77%, 22%)
CMYKcmyk(7.1%, 76.8%, 0%, 78%)
CIE-LABlab(11.30, 26.40, -18.70)
CIE-LCHlch(11.30, 32.35, 324.68°)
OKLaboklab(24.67% 0.0713 -0.052)
OKLCHoklch(24.67% 0.088 323.9)
XYZxyz(2.2738, 1.3036, 3.8725)
Luminance0.0130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D38 #11380D
analogous
#1E0D38 #340D38 #380D26
triadic
#340D38 #38340D #0D3834
tetradic
#340D38 #381E0D #11380D #0D2638
square
#340D38 #381E0D #11380D #0D2638
split-complementary
#340D38 #26380D #0D381E
monochromatic
#170619 #170619 #340D38 #62196A #90249B

Accessibility & contrast

On white

16.66
#340D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D38
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D38#FFFFFF#000000##FFFFFF
##340D381.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B39
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#351421
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340d38;
/* rgb */ color: rgb(52, 13, 56);
/* oklch */ color: oklch(24.7% 0.088 323.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f6f',
    500: '#340d38',
    950: '#000000',
  },
}
SCSS
$custom: #340d38;
$custom-light: #6d4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340d38",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 294.419,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24672,
    "c": 0.08825,
    "h": 323.9
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#340D38
secondary
#34732D
accent
#E54252
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340D38

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

Preview Lab → · Contrast checker → · Palette generator →

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