#340936#340936

#340936 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.092 H 326.1°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#340936
RGBrgb(52, 9, 54)
HSLhsl(297, 71%, 12%)
HSVhsv(297, 83%, 21%)
CMYKcmyk(3.7%, 83.3%, 0%, 78.8%)
CIE-LABlab(10.50, 27.84, -18.53)
CIE-LCHlch(10.50, 33.45, 326.35°)
OKLaboklab(24.05% 0.0765 -0.0515)
OKLCHoklch(24.05% 0.092 326.1)
XYZxyz(2.1797, 1.1919, 3.6046)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340936 #0B3609
analogous
#1D0936 #340936 #360922
triadic
#340936 #363409 #093634
tetradic
#340936 #361D09 #0B3609 #092236
square
#340936 #361D09 #0B3609 #092236
split-complementary
#340936 #223609 #09361D
monochromatic
#19041A #19041A #340936 #67126A #991A9F

Accessibility & contrast

On white

16.96
#340936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340936
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340936#FFFFFF#000000##FFFFFF
##3409361.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021937
Deuteranopia (green-blind)
#131E35
Tritanopia (blue-blind)
#36101E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340936;
/* rgb */ color: rgb(52, 9, 54);
/* oklch */ color: oklch(24.1% 0.092 326.1);
Tailwind
colors: {
  custom: {
    50: '#6e4d6d',
    500: '#340936',
    950: '#000000',
  },
}
SCSS
$custom: #340936;
$custom-light: #6e4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340936",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 297.333,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.24051,
    "c": 0.0922,
    "h": 326.1
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#340936
secondary
#2A7427
accent
#EE3A42
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340936

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

Preview Lab → · Contrast checker → · Palette generator →

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