#340F37#340F37

#340F37 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.084 H 324.6°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#340F37
RGBrgb(52, 15, 55)
HSLhsl(296, 57%, 14%)
HSVhsv(296, 73%, 22%)
CMYKcmyk(5.5%, 72.7%, 0%, 78.4%)
CIE-LABlab(11.61, 25.14, -17.50)
CIE-LCHlch(11.61, 30.63, 325.16°)
OKLaboklab(24.87% 0.0684 -0.0485)
OKLCHoklch(24.87% 0.084 324.6)
XYZxyz(2.2765, 1.3477, 3.7539)
Luminance0.0135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F37 #12370F
analogous
#200F37 #340F37 #370F26
triadic
#340F37 #37340F #0F3734
tetradic
#340F37 #37200F #12370F #0F2637
square
#340F37 #37200F #12370F #0F2637
split-complementary
#340F37 #26370F #0F3720
monochromatic
#170718 #170718 #340F37 #611C67 #8F2997

Accessibility & contrast

On white

16.54
#340F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340F37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F37
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F37#FFFFFF#000000##FFFFFF
##340F371.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C38
Deuteranopia (green-blind)
#162036
Tritanopia (blue-blind)
#351521
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340f37;
/* rgb */ color: rgb(52, 15, 55);
/* oklch */ color: oklch(24.9% 0.084 324.6);
Tailwind
colors: {
  custom: {
    50: '#6d506e',
    500: '#340f37',
    950: '#000000',
  },
}
SCSS
$custom: #340f37;
$custom-light: #6d506e;
$custom-dark: #000000;
JSON
{
  "hex": "#340f37",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 295.5,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24871,
    "c": 0.08388,
    "h": 324.6
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#340F37
secondary
#357131
accent
#E04753
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340F37

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

Preview Lab → · Contrast checker → · Palette generator →

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