#340841#340841

#340841 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.105 H 317.0°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#340841
RGBrgb(52, 8, 65)
HSLhsl(286, 78%, 14%)
HSVhsv(286, 88%, 25%)
CMYKcmyk(20%, 87.7%, 0%, 74.5%)
CIE-LABlab(11.17, 30.71, -25.33)
CIE-LCHlch(11.17, 39.81, 320.48°)
OKLaboklab(24.8% 0.0766 -0.0713)
OKLCHoklch(24.8% 0.105 317)
XYZxyz(2.4570, 1.2855, 5.1187)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340841 #154108
analogous
#180841 #340841 #410832
triadic
#340841 #413408 #084134
tetradic
#340841 #411808 #154108 #083241
square
#340841 #411808 #154108 #083241
split-complementary
#340841 #324108 #084118
monochromatic
#16031B #16031B #340841 #600F77 #8B15AE

Accessibility & contrast

On white

16.71
#340841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340841
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340841#FFFFFF#000000##FFFFFF
##3408411.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#091F40
Tritanopia (blue-blind)
#331524
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340841;
/* rgb */ color: rgb(52, 8, 65);
/* oklch */ color: oklch(24.8% 0.105 317.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d76',
    500: '#340841',
    950: '#000000',
  },
}
SCSS
$custom: #340841;
$custom-light: #6e4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#340841",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 286.316,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24798,
    "c": 0.10467,
    "h": 317
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#340841
secondary
#3A7F25
accent
#F5335F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340841

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

Preview Lab → · Contrast checker → · Palette generator →

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