#340B41#340B41

#340B41 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.101 H 316.6°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#340B41
RGBrgb(52, 11, 65)
HSLhsl(286, 71%, 15%)
HSVhsv(286, 83%, 25%)
CMYKcmyk(20%, 83.1%, 0%, 74.5%)
CIE-LABlab(11.63, 29.40, -24.60)
CIE-LCHlch(11.63, 38.34, 320.09°)
OKLaboklab(25.12% 0.0732 -0.0692)
OKLCHoklch(25.12% 0.101 316.6)
XYZxyz(2.4898, 1.3512, 5.1296)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B41 #18410B
analogous
#190B41 #340B41 #410B33
triadic
#340B41 #41340B #0B4134
tetradic
#340B41 #41190B #18410B #0B3341
square
#340B41 #41190B #18410B #0B3341
split-complementary
#340B41 #33410B #0B4119
monochromatic
#15041A #15041A #340B41 #5E1475 #881DAA

Accessibility & contrast

On white

16.53
#340B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B41
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B41#FFFFFF#000000##FFFFFF
##340B411.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340b41;
/* rgb */ color: rgb(52, 11, 65);
/* oklch */ color: oklch(25.1% 0.101 316.6);
Tailwind
colors: {
  custom: {
    50: '#6e4f76',
    500: '#340b41',
    950: '#000000',
  },
}
SCSS
$custom: #340b41;
$custom-light: #6e4f76;
$custom-dark: #000000;
JSON
{
  "hex": "#340b41",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 285.556,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2512,
    "c": 0.10078,
    "h": 316.6
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#340B41
secondary
#3E7E2A
accent
#EE3A65
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340B41

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

Preview Lab → · Contrast checker → · Palette generator →

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