#340339#340339

#340339 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.104 H 323.9°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#340339
RGBrgb(52, 3, 57)
HSLhsl(294, 90%, 12%)
HSVhsv(294, 95%, 22%)
CMYKcmyk(8.8%, 94.7%, 0%, 77.6%)
CIE-LABlab(9.73, 31.33, -21.94)
CIE-LCHlch(9.73, 38.25, 325.00°)
OKLaboklab(23.57% 0.0842 -0.0614)
OKLCHoklch(23.57% 0.104 323.9)
XYZxyz(2.1872, 1.0907, 3.9654)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340339 #083903
analogous
#190339 #340339 #390323
triadic
#340339 #393403 #033934
tetradic
#340339 #391903 #083903 #032339
square
#340339 #391903 #083903 #032339
split-complementary
#340339 #233903 #033919
monochromatic
#1B021D #1B021D #340339 #690673 #9E09AD

Accessibility & contrast

On white

17.24
#340339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340339
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340339#FFFFFF#000000##FFFFFF
##3403391.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#0D1D38
Tritanopia (blue-blind)
#350D1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340339;
/* rgb */ color: rgb(52, 3, 57);
/* oklch */ color: oklch(23.6% 0.104 323.9);
Tailwind
colors: {
  custom: {
    50: '#6e4a70',
    500: '#340339',
    950: '#000000',
  },
}
SCSS
$custom: #340339;
$custom-light: #6e4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#340339",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 294.444,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23574,
    "c": 0.10415,
    "h": 323.9
  },
  "luminance": 0.01091
}

Semantic roles & 50–950 ramp

primary
#340339
secondary
#257C1C
accent
#FF293D
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340339

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

Preview Lab → · Contrast checker → · Palette generator →

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