#340A38#340A38

#340A38 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.093 H 324.2°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#340A38
RGBrgb(52, 10, 56)
HSLhsl(295, 70%, 13%)
HSVhsv(295, 82%, 22%)
CMYKcmyk(7.1%, 82.1%, 0%, 78%)
CIE-LABlab(10.80, 27.82, -19.50)
CIE-LCHlch(10.80, 33.97, 324.96°)
OKLaboklab(24.31% 0.0752 -0.0543)
OKLCHoklch(24.31% 0.093 324.2)
XYZxyz(2.2385, 1.2328, 3.8607)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A38 #0E380A
analogous
#1D0A38 #340A38 #380A25
triadic
#340A38 #38340A #0A3834
tetradic
#340A38 #381D0A #0E380A #0A2538
square
#340A38 #381D0A #0E380A #0A2538
split-complementary
#340A38 #25380A #0A381D
monochromatic
#18051A #18051A #340A38 #64136C #941DA0

Accessibility & contrast

On white

16.85
#340A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A38
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A38#FFFFFF#000000##FFFFFF
##340A381.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340a38;
/* rgb */ color: rgb(52, 10, 56);
/* oklch */ color: oklch(24.3% 0.093 324.2);
Tailwind
colors: {
  custom: {
    50: '#6d4e6f',
    500: '#340a38',
    950: '#000000',
  },
}
SCSS
$custom: #340a38;
$custom-light: #6d4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340a38",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 56
  },
  "hsl": {
    "h": 294.783,
    "s": 69.697,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24311,
    "c": 0.09276,
    "h": 324.2
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#340A38
secondary
#2F7528
accent
#ED3B4B
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A38

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

Preview Lab → · Contrast checker → · Palette generator →

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