#340A37#340A37

#340A37 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.092 H 325.1°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#340A37
RGBrgb(52, 10, 55)
HSLhsl(296, 69%, 13%)
HSVhsv(296, 82%, 22%)
CMYKcmyk(5.5%, 81.8%, 0%, 78.4%)
CIE-LABlab(10.73, 27.60, -18.89)
CIE-LCHlch(10.73, 33.45, 325.61°)
OKLaboklab(24.24% 0.0752 -0.0525)
OKLCHoklch(24.24% 0.092 325.1)
XYZxyz(2.2143, 1.2231, 3.7331)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A37 #0D370A
analogous
#1D0A37 #340A37 #370A23
triadic
#340A37 #37340A #0A3734
tetradic
#340A37 #371D0A #0D370A #0A2337
square
#340A37 #371D0A #0D370A #0A2337
split-complementary
#340A37 #23370A #0A371D
monochromatic
#18051A #18051A #340A37 #65136B #961D9F

Accessibility & contrast

On white

16.87
#340A37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A37
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A37#FFFFFF#000000##FFFFFF
##340A371.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A38
Deuteranopia (green-blind)
#131F36
Tritanopia (blue-blind)
#35111F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a37;
/* rgb */ color: rgb(52, 10, 55);
/* oklch */ color: oklch(24.2% 0.092 325.1);
Tailwind
colors: {
  custom: {
    50: '#6d4e6e',
    500: '#340a37',
    950: '#000000',
  },
}
SCSS
$custom: #340a37;
$custom-light: #6d4e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340a37",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 55
  },
  "hsl": {
    "h": 296,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24238,
    "c": 0.09175,
    "h": 325.1
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#340A37
secondary
#2D7428
accent
#EC3C48
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A37

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

Preview Lab → · Contrast checker → · Palette generator →

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