#340440#340440

#340440 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.109 H 318.3°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#340440
RGBrgb(52, 4, 64)
HSLhsl(288, 88%, 13%)
HSVhsv(288, 94%, 25%)
CMYKcmyk(18.8%, 93.8%, 0%, 74.9%)
CIE-LABlab(10.46, 32.32, -25.77)
CIE-LCHlch(10.46, 41.33, 321.43°)
OKLaboklab(24.27% 0.0815 -0.0726)
OKLCHoklch(24.27% 0.109 318.3)
XYZxyz(2.3849, 1.1872, 4.9530)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340440 #104004
analogous
#160440 #340440 #40042E
triadic
#340440 #403404 #044034
tetradic
#340440 #401604 #104004 #042E40
square
#340440 #401604 #104004 #042E40
split-complementary
#340440 #2E4004 #044016
monochromatic
#17021D #17021D #340440 #63087A #920BB3

Accessibility & contrast

On white

16.97
#340440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340440
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340440#FFFFFF#000000##FFFFFF
##3404401.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#341223
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340440;
/* rgb */ color: rgb(52, 4, 64);
/* oklch */ color: oklch(24.3% 0.109 318.3);
Tailwind
colors: {
  custom: {
    50: '#6e4b75',
    500: '#340440',
    950: '#000000',
  },
}
SCSS
$custom: #340440;
$custom-light: #6e4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#340440",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 288,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24272,
    "c": 0.10914,
    "h": 318.3
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#340440
secondary
#32811F
accent
#FE2954
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340440

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

Preview Lab → · Contrast checker → · Palette generator →

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