#340D4B#340D4B

#340D4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.109 H 309.4°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#340D4B
RGBrgb(52, 13, 75)
HSLhsl(278, 70%, 17%)
HSVhsv(278, 83%, 29%)
CMYKcmyk(30.7%, 82.7%, 0%, 70.6%)
CIE-LABlab(12.77, 30.95, -29.75)
CIE-LCHlch(12.77, 42.93, 316.14°)
OKLaboklab(26.19% 0.0692 -0.0844)
OKLCHoklch(26.19% 0.109 309.4)
XYZxyz(2.8298, 1.5260, 6.8007)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D4B #244B0D
analogous
#150D4B #340D4B #4B0D43
triadic
#340D4B #4B340D #0D4B34
tetradic
#340D4B #4B150D #244B0D #0D434B
square
#340D4B #4B150D #244B0D #0D434B
split-complementary
#340D4B #434B0D #0D4B15
monochromatic
#12051A #12051A #340D4B #58167F #7C1FB3

Accessibility & contrast

On white

16.09
#340D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#340D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D4B
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D4B#FFFFFF#000000##FFFFFF
##340D4B1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#311C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340d4b;
/* rgb */ color: rgb(52, 13, 75);
/* oklch */ color: oklch(26.2% 0.109 309.4);
Tailwind
colors: {
  custom: {
    50: '#6f507e',
    500: '#340d4b',
    950: '#000000',
  },
}
SCSS
$custom: #340d4b;
$custom-light: #6f507e;
$custom-dark: #000000;
JSON
{
  "hex": "#340d4b",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 277.742,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.10914,
    "h": 309.4
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#340D4B
secondary
#4E862E
accent
#ED3B7D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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