#340942#340942

#340942 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.104 H 316.2°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#340942
RGBrgb(52, 9, 66)
HSLhsl(285, 76%, 15%)
HSVhsv(285, 86%, 26%)
CMYKcmyk(21.2%, 86.4%, 0%, 74.1%)
CIE-LABlab(11.41, 30.51, -25.66)
CIE-LCHlch(11.41, 39.86, 319.93°)
OKLaboklab(24.99% 0.0753 -0.0723)
OKLCHoklch(24.99% 0.104 316.2)
XYZxyz(2.4971, 1.3189, 5.2762)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340942 #174209
analogous
#180942 #340942 #420934
triadic
#340942 #423409 #094234
tetradic
#340942 #421809 #174209 #093442
square
#340942 #421809 #174209 #093442
split-complementary
#340942 #344209 #094218
monochromatic
#15041B #15041B #340942 #5E1078 #8918AE

Accessibility & contrast

On white

16.62
#340942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340942
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340942#FFFFFF#000000##FFFFFF
##3409421.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#081F41
Tritanopia (blue-blind)
#331625
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340942;
/* rgb */ color: rgb(52, 9, 66);
/* oklch */ color: oklch(25.0% 0.104 316.2);
Tailwind
colors: {
  custom: {
    50: '#6e4e77',
    500: '#340942',
    950: '#000000',
  },
}
SCSS
$custom: #340942;
$custom-light: #6e4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#340942",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 285.263,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24988,
    "c": 0.10441,
    "h": 316.2
  },
  "luminance": 0.01319
}

Semantic roles & 50–950 ramp

primary
#340942
secondary
#3D8027
accent
#F33564
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340942

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

Preview Lab → · Contrast checker → · Palette generator →

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