#340537#340537

#340537 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.099 H 325.4°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#340537
RGBrgb(52, 5, 55)
HSLhsl(296, 83%, 12%)
HSVhsv(296, 91%, 22%)
CMYKcmyk(5.5%, 90.9%, 0%, 78.4%)
CIE-LABlab(9.91, 29.94, -20.19)
CIE-LCHlch(9.91, 36.11, 326.00°)
OKLaboklab(23.66% 0.0817 -0.0563)
OKLCHoklch(23.66% 0.099 325.4)
XYZxyz(2.1600, 1.1146, 3.7151)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340537 #083705
analogous
#1B0537 #340537 #370521
triadic
#340537 #373405 #053734
tetradic
#340537 #371B05 #083705 #052137
square
#340537 #371B05 #083705 #052137
split-complementary
#340537 #213705 #05371B
monochromatic
#1B031C #1B031C #340537 #690A6F #9E0FA7

Accessibility & contrast

On white

17.17
#340537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340537 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340537
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340537#FFFFFF#000000##FFFFFF
##3405371.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#101D36
Tritanopia (blue-blind)
#350E1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340537;
/* rgb */ color: rgb(52, 5, 55);
/* oklch */ color: oklch(23.7% 0.099 325.4);
Tailwind
colors: {
  custom: {
    50: '#6e4b6e',
    500: '#340537',
    950: '#000000',
  },
}
SCSS
$custom: #340537;
$custom-light: #6e4b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340537",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 296.4,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23657,
    "c": 0.0992,
    "h": 325.4
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#340537
secondary
#257820
accent
#FA2E3A
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340537

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

Preview Lab → · Contrast checker → · Palette generator →

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