#340A41#340A41

#340A41 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.102 H 316.8°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#340A41
RGBrgb(52, 10, 65)
HSLhsl(286, 73%, 15%)
HSVhsv(286, 85%, 25%)
CMYKcmyk(20%, 84.6%, 0%, 74.5%)
CIE-LABlab(11.48, 29.84, -24.84)
CIE-LCHlch(11.48, 38.83, 320.22°)
OKLaboklab(25.01% 0.0744 -0.0699)
OKLCHoklch(25.01% 0.102 316.8)
XYZxyz(2.4787, 1.3289, 5.1259)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A41 #17410A
analogous
#190A41 #340A41 #410A33
triadic
#340A41 #41340A #0A4134
tetradic
#340A41 #41190A #17410A #0A3341
square
#340A41 #41190A #17410A #0A3341
split-complementary
#340A41 #33410A #0A4119
monochromatic
#15041B #15041B #340A41 #5E1276 #891AAB

Accessibility & contrast

On white

16.59
#340A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A41
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A41#FFFFFF#000000##FFFFFF
##340A411.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#0A2040
Tritanopia (blue-blind)
#331625
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340a41;
/* rgb */ color: rgb(52, 10, 65);
/* oklch */ color: oklch(25.0% 0.102 316.8);
Tailwind
colors: {
  custom: {
    50: '#6e4e76',
    500: '#340a41',
    950: '#000000',
  },
}
SCSS
$custom: #340a41;
$custom-light: #6e4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#340a41",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 285.818,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25011,
    "c": 0.10208,
    "h": 316.8
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#340A41
secondary
#3D7E29
accent
#F03863
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340A41

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

Preview Lab → · Contrast checker → · Palette generator →

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