#340D3F#340D3F

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

Color values

HEX#340D3F
RGBrgb(52, 13, 63)
HSLhsl(287, 66%, 15%)
HSVhsv(287, 79%, 25%)
CMYKcmyk(17.5%, 79.4%, 0%, 75.3%)
CIE-LABlab(11.80, 28.00, -22.90)
CIE-LCHlch(11.80, 36.18, 320.72°)
OKLaboklab(25.2% 0.0711 -0.0643)
OKLCHoklch(25.2% 0.096 317.9)
XYZxyz(2.4572, 1.3769, 4.8380)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D3F #183F0D
analogous
#1B0D3F #340D3F #3F0D31
triadic
#340D3F #3F340D #0D3F34
tetradic
#340D3F #3F1B0D #183F0D #0D313F
square
#340D3F #3F1B0D #183F0D #0D313F
split-complementary
#340D3F #313F0D #0D3F1B
monochromatic
#150519 #150519 #340D3F #5E1772 #8822A4

Accessibility & contrast

On white

16.47
#340D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D3F
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D3F#FFFFFF#000000##FFFFFF
##340D3F1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#0F203E
Tritanopia (blue-blind)
#341724
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340d3f;
/* rgb */ color: rgb(52, 13, 63);
/* oklch */ color: oklch(25.2% 0.096 317.9);
Tailwind
colors: {
  custom: {
    50: '#6e5074',
    500: '#340d3f',
    950: '#000000',
  },
}
SCSS
$custom: #340d3f;
$custom-light: #6e5074;
$custom-dark: #000000;
JSON
{
  "hex": "#340d3f",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 286.8,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25195,
    "c": 0.09581,
    "h": 317.9
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#340D3F
secondary
#3E7B2D
accent
#E93F64
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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