#340C3D#340C3D

#340C3D is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.095 H 319.6°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#340C3D
RGBrgb(52, 12, 61)
HSLhsl(289, 67%, 14%)
HSVhsv(289, 80%, 24%)
CMYKcmyk(14.8%, 80.3%, 0%, 76.1%)
CIE-LABlab(11.48, 28.02, -21.99)
CIE-LCHlch(11.48, 35.62, 321.87°)
OKLaboklab(24.92% 0.0725 -0.0616)
OKLCHoklch(24.92% 0.095 319.6)
XYZxyz(2.3898, 1.3300, 4.5448)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C3D #153D0C
analogous
#1C0C3D #340C3D #3D0C2E
triadic
#340C3D #3D340C #0C3D34
tetradic
#340C3D #3D1C0C #153D0C #0C2E3D
square
#340C3D #3D1C0C #153D0C #0C2E3D
split-complementary
#340C3D #2E3D0C #0C3D1C
monochromatic
#16051A #16051A #340C3D #601670 #8B20A3

Accessibility & contrast

On white

16.59
#340C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C3D
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C3D#FFFFFF#000000##FFFFFF
##340C3D1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#10203C
Tritanopia (blue-blind)
#341523
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340c3d;
/* rgb */ color: rgb(52, 12, 61);
/* oklch */ color: oklch(24.9% 0.095 319.6);
Tailwind
colors: {
  custom: {
    50: '#6e4f73',
    500: '#340c3d',
    950: '#000000',
  },
}
SCSS
$custom: #340c3d;
$custom-light: #6e4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#340c3d",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 288.98,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24919,
    "c": 0.09511,
    "h": 319.6
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#340C3D
secondary
#3A792C
accent
#EA3E5D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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