#340941#340941

#340941 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.103 H 316.9°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#340941
RGBrgb(52, 9, 65)
HSLhsl(286, 76%, 15%)
HSVhsv(286, 86%, 25%)
CMYKcmyk(20%, 86.2%, 0%, 74.5%)
CIE-LABlab(11.33, 30.27, -25.09)
CIE-LCHlch(11.33, 39.32, 320.36°)
OKLaboklab(24.91% 0.0755 -0.0706)
OKLCHoklch(24.91% 0.103 316.9)
XYZxyz(2.4679, 1.3072, 5.1223)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340941 #164109
analogous
#180941 #340941 #410932
triadic
#340941 #413409 #094134
tetradic
#340941 #411809 #164109 #093241
square
#340941 #411809 #164109 #093241
split-complementary
#340941 #324109 #094118
monochromatic
#16041B #16041B #340941 #5F1077 #8A18AD

Accessibility & contrast

On white

16.65
#340941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340941
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340941#FFFFFF#000000##FFFFFF
##3409411.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340941;
/* rgb */ color: rgb(52, 9, 65);
/* oklch */ color: oklch(24.9% 0.103 316.9);
Tailwind
colors: {
  custom: {
    50: '#6e4e76',
    500: '#340941',
    950: '#000000',
  },
}
SCSS
$custom: #340941;
$custom-light: #6e4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#340941",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 286.071,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24905,
    "c": 0.10337,
    "h": 316.9
  },
  "luminance": 0.01307
}

Semantic roles & 50–950 ramp

primary
#340941
secondary
#3B7F27
accent
#F23661
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340941

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

Preview Lab → · Contrast checker → · Palette generator →

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