#340A31#340A31

#340A31 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.086 H 330.9°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#340A31
RGBrgb(52, 10, 49)
HSLhsl(304, 68%, 12%)
HSVhsv(304, 81%, 20%)
CMYKcmyk(0%, 80.8%, 5.8%, 79.6%)
CIE-LABlab(10.33, 26.35, -15.16)
CIE-LCHlch(10.33, 30.40, 330.10°)
OKLaboklab(23.82% 0.075 -0.0417)
OKLCHoklch(23.82% 0.086 330.9)
XYZxyz(2.0791, 1.1691, 3.0213)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A31 #0A340D
analogous
#220A34 #340A31 #340A1C
triadic
#340A31 #31340A #0A3134
tetradic
#340A31 #34220A #0A340D #0A1C34
square
#340A31 #34220A #0A340D #0A1C34
split-complementary
#340A31 #1C340A #0A3422
monochromatic
#1A0518 #1A0518 #340A31 #671461 #9B1E92

Accessibility & contrast

On white

17.02
#340A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A31
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A31#FFFFFF#000000##FFFFFF
##340A311.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071832
Deuteranopia (green-blind)
#161E30
Tritanopia (blue-blind)
#360F1C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a31;
/* rgb */ color: rgb(52, 10, 49);
/* oklch */ color: oklch(23.8% 0.086 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d4d69',
    500: '#340a31',
    950: '#000000',
  },
}
SCSS
$custom: #340a31;
$custom-light: #6d4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#340a31",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 304.286,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23821,
    "c": 0.08585,
    "h": 330.9
  },
  "luminance": 0.01169
}

Semantic roles & 50–950 ramp

primary
#340A31
secondary
#28712E
accent
#EB4A3D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340A31

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

Preview Lab → · Contrast checker → · Palette generator →

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