#340C41#340C41

#340C41 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.099 H 316.5°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#340C41
RGBrgb(52, 12, 65)
HSLhsl(285, 69%, 15%)
HSVhsv(285, 82%, 25%)
CMYKcmyk(20%, 81.5%, 0%, 74.5%)
CIE-LABlab(11.79, 28.95, -24.34)
CIE-LCHlch(11.79, 37.82, 319.94°)
OKLaboklab(25.23% 0.0721 -0.0685)
OKLCHoklch(25.23% 0.099 316.5)
XYZxyz(2.5016, 1.3748, 5.1336)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C41 #19410C
analogous
#190C41 #340C41 #410C33
triadic
#340C41 #41340C #0C4134
tetradic
#340C41 #41190C #19410C #0C3341
square
#340C41 #41190C #19410C #0C3341
split-complementary
#340C41 #33410C #0C4119
monochromatic
#15051A #15051A #340C41 #5D1675 #871FA8

Accessibility & contrast

On white

16.47
#340C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C41
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C41#FFFFFF#000000##FFFFFF
##340C411.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#0C2040
Tritanopia (blue-blind)
#331725
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340c41;
/* rgb */ color: rgb(52, 12, 65);
/* oklch */ color: oklch(25.2% 0.099 316.5);
Tailwind
colors: {
  custom: {
    50: '#6e4f76',
    500: '#340c41',
    950: '#000000',
  },
}
SCSS
$custom: #340c41;
$custom-light: #6e4f76;
$custom-dark: #000000;
JSON
{
  "hex": "#340c41",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 285.283,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25233,
    "c": 0.09942,
    "h": 316.5
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#340C41
secondary
#407D2C
accent
#EC3C67
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340C41

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

Preview Lab → · Contrast checker → · Palette generator →

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