#340A36#340A36

#340A36 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.091 H 326.0°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#340A36
RGBrgb(52, 10, 54)
HSLhsl(297, 69%, 13%)
HSVhsv(297, 81%, 21%)
CMYKcmyk(3.7%, 81.5%, 0%, 78.8%)
CIE-LABlab(10.66, 27.39, -18.28)
CIE-LCHlch(10.66, 32.93, 326.28°)
OKLaboklab(24.17% 0.0752 -0.0508)
OKLCHoklch(24.17% 0.091 326)
XYZxyz(2.1905, 1.2136, 3.6082)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A36 #0C360A
analogous
#1E0A36 #340A36 #360A22
triadic
#340A36 #36340A #0A3634
tetradic
#340A36 #361E0A #0C360A #0A2236
square
#340A36 #361E0A #0C360A #0A2236
split-complementary
#340A36 #22360A #0A361E
monochromatic
#19051A #19051A #340A36 #66146A #971D9D

Accessibility & contrast

On white

16.90
#340A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A36
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A36#FFFFFF#000000##FFFFFF
##340A361.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031937
Deuteranopia (green-blind)
#141F35
Tritanopia (blue-blind)
#36111F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a36;
/* rgb */ color: rgb(52, 10, 54);
/* oklch */ color: oklch(24.2% 0.091 326.0);
Tailwind
colors: {
  custom: {
    50: '#6d4e6d',
    500: '#340a36',
    950: '#000000',
  },
}
SCSS
$custom: #340a36;
$custom-light: #6d4e6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340a36",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 297.273,
    "s": 68.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24166,
    "c": 0.09074,
    "h": 326
  },
  "luminance": 0.01213
}

Semantic roles & 50–950 ramp

primary
#340A36
secondary
#2C7328
accent
#EC3C44
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A36

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

Preview Lab → · Contrast checker → · Palette generator →

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