#340336#340336

#340336 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.101 H 326.4°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#340336
RGBrgb(52, 3, 54)
HSLhsl(298, 89%, 11%)
HSVhsv(298, 94%, 21%)
CMYKcmyk(3.7%, 94.4%, 0%, 78.8%)
CIE-LABlab(9.50, 30.73, -20.13)
CIE-LCHlch(9.50, 36.74, 326.77°)
OKLaboklab(23.34% 0.0846 -0.0561)
OKLCHoklch(23.34% 0.101 326.4)
XYZxyz(2.1146, 1.0617, 3.5829)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340336 #053603
analogous
#1A0336 #340336 #36031E
triadic
#340336 #363403 #033634
tetradic
#340336 #361A03 #053603 #031E36
square
#340336 #361A03 #053603 #031E36
split-complementary
#340336 #1E3603 #03361A
monochromatic
#1C021D #1C021D #340336 #6C0670 #A409AA

Accessibility & contrast

On white

17.32
#340336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340336
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340336#FFFFFF#000000##FFFFFF
##3403361.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#101D35
Tritanopia (blue-blind)
#360C1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340336;
/* rgb */ color: rgb(52, 3, 54);
/* oklch */ color: oklch(23.3% 0.101 326.4);
Tailwind
colors: {
  custom: {
    50: '#6e4a6d',
    500: '#340336',
    950: '#000000',
  },
}
SCSS
$custom: #340336;
$custom-light: #6e4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340336",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 297.647,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.23338,
    "c": 0.10147,
    "h": 326.4
  },
  "luminance": 0.01062
}

Semantic roles & 50–950 ramp

primary
#340336
secondary
#1F791C
accent
#FF2931
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340336

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

Preview Lab → · Contrast checker → · Palette generator →

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