#340441#340441

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

Color values

HEX#340441
RGBrgb(52, 4, 65)
HSLhsl(287, 88%, 14%)
HSVhsv(287, 94%, 25%)
CMYKcmyk(20%, 93.8%, 0%, 74.5%)
CIE-LABlab(10.55, 32.53, -26.34)
CIE-LCHlch(10.55, 41.86, 321.00°)
OKLaboklab(24.36% 0.0813 -0.0743)
OKLCHoklch(24.36% 0.11 317.6)
XYZxyz(2.4136, 1.1987, 5.1042)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340441 #114104
analogous
#150441 #340441 #41042F
triadic
#340441 #413404 #044134
tetradic
#340441 #411504 #114104 #042F41
square
#340441 #411504 #114104 #042F41
split-complementary
#340441 #2F4104 #044115
monochromatic
#17021D #17021D #340441 #62087B #900BB4

Accessibility & contrast

On white

16.94
#340441 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340441
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340441#FFFFFF#000000##FFFFFF
##3404411.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#051E40
Tritanopia (blue-blind)
#331223
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340441;
/* rgb */ color: rgb(52, 4, 65);
/* oklch */ color: oklch(24.4% 0.110 317.6);
Tailwind
colors: {
  custom: {
    50: '#6e4b76',
    500: '#340441',
    950: '#000000',
  },
}
SCSS
$custom: #340441;
$custom-light: #6e4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#340441",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 65
  },
  "hsl": {
    "h": 287.213,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24358,
    "c": 0.11009,
    "h": 317.6
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#340441
secondary
#34821F
accent
#FF2957
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340441

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

Preview Lab → · Contrast checker → · Palette generator →

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