#340D3A#340D3A

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

Color values

HEX#340D3A
RGBrgb(52, 13, 58)
HSLhsl(292, 63%, 14%)
HSVhsv(292, 78%, 23%)
CMYKcmyk(10.3%, 77.6%, 0%, 77.3%)
CIE-LABlab(11.44, 26.85, -19.92)
CIE-LCHlch(11.44, 33.43, 323.43°)
OKLaboklab(24.82% 0.0713 -0.0555)
OKLCHoklch(24.82% 0.09 322.1)
XYZxyz(2.3237, 1.3235, 4.1352)
Luminance0.0132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D3A #133A0D
analogous
#1E0D3A #340D3A #3A0D2A
triadic
#340D3A #3A340D #0D3A34
tetradic
#340D3A #3A1E0D #133A0D #0D2A3A
square
#340D3A #3A1E0D #133A0D #0D2A3A
split-complementary
#340D3A #2A3A0D #0D3A1E
monochromatic
#160619 #160619 #340D3A #61186C #8E239E

Accessibility & contrast

On white

16.61
#340D3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D3A
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D3A#FFFFFF#000000##FFFFFF
##340D3A1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#132039
Tritanopia (blue-blind)
#351522
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340d3a;
/* rgb */ color: rgb(52, 13, 58);
/* oklch */ color: oklch(24.8% 0.090 322.1);
Tailwind
colors: {
  custom: {
    50: '#6d4f70',
    500: '#340d3a',
    950: '#000000',
  },
}
SCSS
$custom: #340d3a;
$custom-light: #6d4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#340d3a",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 58
  },
  "hsl": {
    "h": 292,
    "s": 63.38,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24817,
    "c": 0.09039,
    "h": 322.1
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#340D3A
secondary
#37762D
accent
#E64157
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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