#340439#340439

#340439 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.103 H 323.8°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#340439
RGBrgb(52, 4, 57)
HSLhsl(294, 87%, 12%)
HSVhsv(294, 93%, 22%)
CMYKcmyk(8.8%, 93%, 0%, 77.6%)
CIE-LABlab(9.89, 30.84, -21.67)
CIE-LCHlch(9.89, 37.69, 324.90°)
OKLaboklab(23.69% 0.0828 -0.0606)
OKLCHoklch(23.69% 0.103 323.8)
XYZxyz(2.1980, 1.1124, 3.9691)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340439 #093904
analogous
#1A0439 #340439 #390424
triadic
#340439 #393404 #043934
tetradic
#340439 #391A04 #093904 #042439
square
#340439 #391A04 #093904 #042439
split-complementary
#340439 #243904 #04391A
monochromatic
#1A021D #1A021D #340439 #680872 #9C0CAB

Accessibility & contrast

On white

17.18
#340439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340439 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340439
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340439#FFFFFF#000000##FFFFFF
##3404391.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0E1D38
Tritanopia (blue-blind)
#350E1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340439;
/* rgb */ color: rgb(52, 4, 57);
/* oklch */ color: oklch(23.7% 0.103 323.8);
Tailwind
colors: {
  custom: {
    50: '#6e4b70',
    500: '#340439',
    950: '#000000',
  },
}
SCSS
$custom: #340439;
$custom-light: #6e4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#340439",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 294.34,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23694,
    "c": 0.1026,
    "h": 323.8
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#340439
secondary
#277B1E
accent
#FD2B3F
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340439

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

Preview Lab → · Contrast checker → · Palette generator →

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