#340E4D#340E4D

#340E4D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.110 H 308.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#340E4D
RGBrgb(52, 14, 77)
HSLhsl(276, 69%, 18%)
HSVhsv(276, 82%, 30%)
CMYKcmyk(32.5%, 81.8%, 0%, 69.8%)
CIE-LABlab(13.11, 31.00, -30.58)
CIE-LCHlch(13.11, 43.55, 315.39°)
OKLaboklab(26.48% 0.0677 -0.0868)
OKLCHoklch(26.48% 0.11 308)
XYZxyz(2.9125, 1.5800, 7.1713)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E4D #274D0E
analogous
#140E4D #340E4D #4D0E47
triadic
#340E4D #4D340E #0E4D34
tetradic
#340E4D #4D140E #274D0E #0E474D
square
#340E4D #4D140E #274D0E #0E474D
split-complementary
#340E4D #474D0E #0E4D14
monochromatic
#11051A #11051A #340E4D #571781 #7A21B5

Accessibility & contrast

On white

15.96
#340E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#340E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E4D
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E4D#FFFFFF#000000##FFFFFF
##340E4D1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#301D2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340e4d;
/* rgb */ color: rgb(52, 14, 77);
/* oklch */ color: oklch(26.5% 0.110 308.0);
Tailwind
colors: {
  custom: {
    50: '#6f517f',
    500: '#340e4d',
    950: '#000000',
  },
}
SCSS
$custom: #340e4d;
$custom-light: #6f517f;
$custom-dark: #000000;
JSON
{
  "hex": "#340e4d",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 276.19,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26482,
    "c": 0.11012,
    "h": 308
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#340E4D
secondary
#52882F
accent
#EC3C82
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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