#340B38#340B38

#340B38 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.091 H 324.1°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#340B38
RGBrgb(52, 11, 56)
HSLhsl(295, 67%, 13%)
HSVhsv(295, 80%, 22%)
CMYKcmyk(7.1%, 80.4%, 0%, 78%)
CIE-LABlab(10.96, 27.36, -19.25)
CIE-LCHlch(10.96, 33.45, 324.87°)
OKLaboklab(24.43% 0.074 -0.0536)
OKLCHoklch(24.43% 0.091 324.1)
XYZxyz(2.2496, 1.2551, 3.8644)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B38 #0F380B
analogous
#1D0B38 #340B38 #380B25
triadic
#340B38 #38340B #0B3834
tetradic
#340B38 #381D0B #0F380B #0B2538
square
#340B38 #381D0B #0F380B #0B2538
split-complementary
#340B38 #25380B #0B381D
monochromatic
#18051A #18051A #340B38 #63156B #931F9E

Accessibility & contrast

On white

16.79
#340B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B38
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B38#FFFFFF#000000##FFFFFF
##340B381.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#351220
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340b38;
/* rgb */ color: rgb(52, 11, 56);
/* oklch */ color: oklch(24.4% 0.091 324.1);
Tailwind
colors: {
  custom: {
    50: '#6d4e6f',
    500: '#340b38',
    950: '#000000',
  },
}
SCSS
$custom: #340b38;
$custom-light: #6d4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340b38",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 56
  },
  "hsl": {
    "h": 294.667,
    "s": 67.164,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24426,
    "c": 0.09132,
    "h": 324.1
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#340B38
secondary
#31752A
accent
#EA3E4D
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340B38

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

Preview Lab → · Contrast checker → · Palette generator →

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