#340B39#340B39

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

Color values

HEX#340B39
RGBrgb(52, 11, 57)
HSLhsl(293, 68%, 13%)
HSVhsv(293, 81%, 22%)
CMYKcmyk(8.8%, 80.7%, 0%, 77.6%)
CIE-LABlab(11.03, 27.58, -19.86)
CIE-LCHlch(11.03, 33.99, 324.25°)
OKLaboklab(24.5% 0.0739 -0.0553)
OKLCHoklch(24.5% 0.092 323.2)
XYZxyz(2.2743, 1.2649, 3.9945)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B39 #10390B
analogous
#1D0B39 #340B39 #390B27
triadic
#340B39 #39340B #0B3934
tetradic
#340B39 #391D0B #10390B #0B2739
square
#340B39 #391D0B #10390B #0B2739
split-complementary
#340B39 #27390B #0B391D
monochromatic
#17051A #17051A #340B39 #63156C #921FA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340B39#FFFFFF#000000##FFFFFF
##340B391.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)
#011A3A
Deuteranopia (green-blind)
#121F38
Tritanopia (blue-blind)
#351321
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340b39;
/* rgb */ color: rgb(52, 11, 57);
/* oklch */ color: oklch(24.5% 0.092 323.2);
Tailwind
colors: {
  custom: {
    50: '#6d4e6f',
    500: '#340b39',
    950: '#000000',
  },
}
SCSS
$custom: #340b39;
$custom-light: #6d4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340b39",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 293.478,
    "s": 67.647,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24499,
    "c": 0.09235,
    "h": 323.2
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#340B39
secondary
#32762A
accent
#EB3D50
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340B39

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

Preview Lab → · Contrast checker → · Palette generator →

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