#340540#340540

#340540 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.108 H 318.2°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#340540
RGBrgb(52, 5, 64)
HSLhsl(288, 86%, 14%)
HSVhsv(288, 92%, 25%)
CMYKcmyk(18.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(10.62, 31.85, -25.51)
CIE-LCHlch(10.62, 40.80, 321.30°)
OKLaboklab(24.38% 0.0803 -0.0718)
OKLCHoklch(24.38% 0.108 318.2)
XYZxyz(2.3957, 1.2089, 4.9566)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340540 #114005
analogous
#160540 #340540 #40052E
triadic
#340540 #403405 #054034
tetradic
#340540 #401605 #114005 #052E40
square
#340540 #401605 #114005 #052E40
split-complementary
#340540 #2E4005 #054016
monochromatic
#17021C #17021C #340540 #620979 #900EB2

Accessibility & contrast

On white

16.91
#340540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340540
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340540#FFFFFF#000000##FFFFFF
##3405401.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#341323
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340540;
/* rgb */ color: rgb(52, 5, 64);
/* oklch */ color: oklch(24.4% 0.108 318.2);
Tailwind
colors: {
  custom: {
    50: '#6e4c75',
    500: '#340540',
    950: '#000000',
  },
}
SCSS
$custom: #340540;
$custom-light: #6e4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#340540",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 287.797,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24384,
    "c": 0.10774,
    "h": 318.2
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#340540
secondary
#348120
accent
#FC2C56
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340540

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

Preview Lab → · Contrast checker → · Palette generator →

#340540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva