#340E41#340E41

#340E41 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.097 H 316.1°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#340E41
RGBrgb(52, 14, 65)
HSLhsl(285, 65%, 15%)
HSVhsv(285, 78%, 25%)
CMYKcmyk(20%, 78.5%, 0%, 74.5%)
CIE-LABlab(12.13, 27.99, -23.79)
CIE-LCHlch(12.13, 36.74, 319.63°)
OKLaboklab(25.48% 0.0696 -0.0669)
OKLCHoklch(25.48% 0.097 316.1)
XYZxyz(2.5272, 1.4259, 5.1421)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E41 #1B410E
analogous
#1A0E41 #340E41 #410E34
triadic
#340E41 #41340E #0E4134
tetradic
#340E41 #411A0E #1B410E #0E3441
square
#340E41 #411A0E #1B410E #0E3441
split-complementary
#340E41 #34410E #0E411A
monochromatic
#140519 #140519 #340E41 #5C1973 #8524A6

Accessibility & contrast

On white

16.34
#340E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E41
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E41#FFFFFF#000000##FFFFFF
##340E411.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#331826
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340e41;
/* rgb */ color: rgb(52, 14, 65);
/* oklch */ color: oklch(25.5% 0.097 316.1);
Tailwind
colors: {
  custom: {
    50: '#6e5076',
    500: '#340e41',
    950: '#000000',
  },
}
SCSS
$custom: #340e41;
$custom-light: #6e5076;
$custom-dark: #000000;
JSON
{
  "hex": "#340e41",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 65
  },
  "hsl": {
    "h": 284.706,
    "s": 64.557,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25476,
    "c": 0.09654,
    "h": 316.1
  },
  "luminance": 0.01426
}

Semantic roles & 50–950 ramp

primary
#340E41
secondary
#427C2F
accent
#E8406B
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340E41

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

Preview Lab → · Contrast checker → · Palette generator →

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