#340D4A#340D4A

#340D4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.108 H 310.0°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#340D4A
RGBrgb(52, 13, 74)
HSLhsl(278, 70%, 17%)
HSVhsv(278, 82%, 29%)
CMYKcmyk(29.7%, 82.4%, 0%, 71%)
CIE-LABlab(12.69, 30.70, -29.19)
CIE-LCHlch(12.69, 42.36, 316.44°)
OKLaboklab(26.1% 0.0695 -0.0827)
OKLCHoklch(26.1% 0.108 310)
XYZxyz(2.7959, 1.5124, 6.6219)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D4A #234A0D
analogous
#160D4A #340D4A #4A0D42
triadic
#340D4A #4A340D #0D4A34
tetradic
#340D4A #4A160D #234A0D #0D424A
square
#340D4A #4A160D #234A0D #0D424A
split-complementary
#340D4A #424A0D #0D4A16
monochromatic
#12051A #12051A #340D4A #59167E #7D1FB2

Accessibility & contrast

On white

16.12
#340D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D4A
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D4A#FFFFFF#000000##FFFFFF
##340D4A1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#022149
Tritanopia (blue-blind)
#311B2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340d4a;
/* rgb */ color: rgb(52, 13, 74);
/* oklch */ color: oklch(26.1% 0.108 310.0);
Tailwind
colors: {
  custom: {
    50: '#6e507d',
    500: '#340d4a',
    950: '#000000',
  },
}
SCSS
$custom: #340d4a;
$custom-light: #6e507d;
$custom-dark: #000000;
JSON
{
  "hex": "#340d4a",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 278.361,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26103,
    "c": 0.10802,
    "h": 310
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#340D4A
secondary
#4D852E
accent
#ED3B7B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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