#340C38#340C38

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

Color values

HEX#340C38
RGBrgb(52, 12, 56)
HSLhsl(295, 65%, 13%)
HSVhsv(295, 79%, 22%)
CMYKcmyk(7.1%, 78.6%, 0%, 78%)
CIE-LABlab(11.13, 26.89, -18.98)
CIE-LCHlch(11.13, 32.91, 324.78°)
OKLaboklab(24.55% 0.0727 -0.0528)
OKLCHoklch(24.55% 0.09 324)
XYZxyz(2.2614, 1.2787, 3.8683)
Luminance0.0128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C38 #10380C
analogous
#1E0C38 #340C38 #380C26
triadic
#340C38 #38340C #0C3834
tetradic
#340C38 #381E0C #10380C #0C2638
square
#340C38 #381E0C #10380C #0C2638
split-complementary
#340C38 #26380C #0C381E
monochromatic
#170519 #170519 #340C38 #63176A #92229D

Accessibility & contrast

On white

16.72
#340C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C38
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C38#FFFFFF#000000##FFFFFF
##340C381.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031B39
Deuteranopia (green-blind)
#141F37
Tritanopia (blue-blind)
#351320
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340c38;
/* rgb */ color: rgb(52, 12, 56);
/* oklch */ color: oklch(24.5% 0.090 324.0);
Tailwind
colors: {
  custom: {
    50: '#6d4f6f',
    500: '#340c38',
    950: '#000000',
  },
}
SCSS
$custom: #340c38;
$custom-light: #6d4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340c38",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 294.545,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24546,
    "c": 0.08982,
    "h": 324
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#340C38
secondary
#32742C
accent
#E8404F
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340C38

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

Preview Lab → · Contrast checker → · Palette generator →

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