#340A35#340A35

#340A35 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.090 H 326.9°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#340A35
RGBrgb(52, 10, 53)
HSLhsl(299, 68%, 12%)
HSVhsv(299, 81%, 21%)
CMYKcmyk(1.9%, 81.1%, 0%, 79.2%)
CIE-LABlab(10.59, 27.18, -17.66)
CIE-LCHlch(10.59, 32.41, 326.98°)
OKLaboklab(24.1% 0.0752 -0.049)
OKLCHoklch(24.1% 0.09 326.9)
XYZxyz(2.1673, 1.2043, 3.4858)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A35 #0B350A
analogous
#1F0A35 #340A35 #350A20
triadic
#340A35 #35340A #0A3534
tetradic
#340A35 #351F0A #0B350A #0A2035
square
#340A35 #351F0A #0B350A #0A2035
split-complementary
#340A35 #20350A #0A351F
monochromatic
#19051A #19051A #340A35 #671468 #991D9C

Accessibility & contrast

On white

16.92
#340A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340A35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A35
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A35#FFFFFF#000000##FFFFFF
##340A351.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041936
Deuteranopia (green-blind)
#141F34
Tritanopia (blue-blind)
#36101E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a35;
/* rgb */ color: rgb(52, 10, 53);
/* oklch */ color: oklch(24.1% 0.090 326.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e6c',
    500: '#340a35',
    950: '#000000',
  },
}
SCSS
$custom: #340a35;
$custom-light: #6d4e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340a35",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 53
  },
  "hsl": {
    "h": 298.605,
    "s": 68.254,
    "l": 12.353
  },
  "oklch": {
    "l": 0.24095,
    "c": 0.08975,
    "h": 326.9
  },
  "luminance": 0.01204
}

Semantic roles & 50–950 ramp

primary
#340A35
secondary
#2A7228
accent
#EB3D41
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A35

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

Preview Lab → · Contrast checker → · Palette generator →

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