#340C36#340C36

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

Color values

HEX#340C36
RGBrgb(52, 12, 54)
HSLhsl(297, 64%, 13%)
HSVhsv(297, 78%, 21%)
CMYKcmyk(3.7%, 77.8%, 0%, 78.8%)
CIE-LABlab(10.99, 26.45, -17.75)
CIE-LCHlch(10.99, 31.86, 326.13°)
OKLaboklab(24.4% 0.0726 -0.0492)
OKLCHoklch(24.4% 0.088 325.9)
XYZxyz(2.2135, 1.2595, 3.6158)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C36 #0E360C
analogous
#1F0C36 #340C36 #360C23
triadic
#340C36 #36340C #0C3634
tetradic
#340C36 #361F0C #0E360C #0C2336
square
#340C36 #361F0C #0E360C #0C2336
split-complementary
#340C36 #23360C #0C361F
monochromatic
#180619 #180619 #340C36 #641768 #94229A

Accessibility & contrast

On white

16.78
#340C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C36
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C36#FFFFFF#000000##FFFFFF
##340C361.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051A37
Deuteranopia (green-blind)
#151F35
Tritanopia (blue-blind)
#35121F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340c36;
/* rgb */ color: rgb(52, 12, 54);
/* oklch */ color: oklch(24.4% 0.088 325.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f6d',
    500: '#340c36',
    950: '#000000',
  },
}
SCSS
$custom: #340c36;
$custom-light: #6d4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340c36",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 297.143,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24404,
    "c": 0.08774,
    "h": 325.9
  },
  "luminance": 0.01259
}

Semantic roles & 50–950 ramp

primary
#340C36
secondary
#2F722C
accent
#E74149
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340C36

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

Preview Lab → · Contrast checker → · Palette generator →

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