#340D3E#340D3E

#340D3E is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.095 H 318.7°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#340D3E
RGBrgb(52, 13, 62)
HSLhsl(288, 65%, 15%)
HSVhsv(288, 79%, 24%)
CMYKcmyk(16.1%, 79%, 0%, 75.7%)
CIE-LABlab(11.73, 27.77, -22.31)
CIE-LCHlch(11.73, 35.62, 321.22°)
OKLaboklab(25.12% 0.0711 -0.0625)
OKLCHoklch(25.12% 0.095 318.7)
XYZxyz(2.4295, 1.3658, 4.6922)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D3E #173E0D
analogous
#1C0D3E #340D3E #3E0D30
triadic
#340D3E #3E340D #0D3E34
tetradic
#340D3E #3E1C0D #173E0D #0D303E
square
#340D3E #3E1C0D #173E0D #0D303E
split-complementary
#340D3E #303E0D #0D3E1C
monochromatic
#150519 #150519 #340D3E #5E1871 #8922A3

Accessibility & contrast

On white

16.49
#340D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340D3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D3E
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D3E#FFFFFF#000000##FFFFFF
##340D3E1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#10203D
Tritanopia (blue-blind)
#341624
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340d3e;
/* rgb */ color: rgb(52, 13, 62);
/* oklch */ color: oklch(25.1% 0.095 318.7);
Tailwind
colors: {
  custom: {
    50: '#6e5073',
    500: '#340d3e',
    950: '#000000',
  },
}
SCSS
$custom: #340d3e;
$custom-light: #6e5073;
$custom-dark: #000000;
JSON
{
  "hex": "#340d3e",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 287.755,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25117,
    "c": 0.09472,
    "h": 318.7
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#340D3E
secondary
#3D7A2D
accent
#E84062
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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