#340737#340737

#340737 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.096 H 325.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#340737
RGBrgb(52, 7, 55)
HSLhsl(296, 77%, 12%)
HSVhsv(296, 87%, 22%)
CMYKcmyk(5.5%, 87.3%, 0%, 78.4%)
CIE-LABlab(10.24, 28.98, -19.66)
CIE-LCHlch(10.24, 35.02, 325.84°)
OKLaboklab(23.89% 0.079 -0.0547)
OKLCHoklch(23.89% 0.096 325.3)
XYZxyz(2.1817, 1.1580, 3.7223)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340737 #0A3707
analogous
#1C0737 #340737 #370722
triadic
#340737 #373407 #073734
tetradic
#340737 #371C07 #0A3707 #072237
square
#340737 #371C07 #0A3707 #072237
split-complementary
#340737 #223707 #07371C
monochromatic
#1A031B #1A031B #340737 #670E6D #9B15A4

Accessibility & contrast

On white

17.05
#340737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340737 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340737
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340737#FFFFFF#000000##FFFFFF
##3407371.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#111E36
Tritanopia (blue-blind)
#350F1E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340737;
/* rgb */ color: rgb(52, 7, 55);
/* oklch */ color: oklch(23.9% 0.096 325.3);
Tailwind
colors: {
  custom: {
    50: '#6e4c6e',
    500: '#340737',
    950: '#000000',
  },
}
SCSS
$custom: #340737;
$custom-light: #6e4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340737",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 296.25,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23893,
    "c": 0.09614,
    "h": 325.3
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#340737
secondary
#287723
accent
#F43440
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340737

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

Preview Lab → · Contrast checker → · Palette generator →

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