#340638#340638

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

Color values

HEX#340638
RGBrgb(52, 6, 56)
HSLhsl(295, 81%, 12%)
HSVhsv(295, 89%, 22%)
CMYKcmyk(7.1%, 89.3%, 0%, 78%)
CIE-LABlab(10.15, 29.66, -20.53)
CIE-LCHlch(10.15, 36.07, 325.31°)
OKLaboklab(23.85% 0.0803 -0.0573)
OKLCHoklch(23.85% 0.099 324.5)
XYZxyz(2.1951, 1.1460, 3.8462)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340638 #0A3806
analogous
#1B0638 #340638 #380623
triadic
#340638 #383406 #063834
tetradic
#340638 #381B06 #0A3806 #062338
square
#340638 #381B06 #0A3806 #062338
split-complementary
#340638 #233806 #06381B
monochromatic
#1A031C #1A031C #340638 #670C6F #9B12A7

Accessibility & contrast

On white

17.08
#340638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340638
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340638#FFFFFF#000000##FFFFFF
##3406381.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#101E37
Tritanopia (blue-blind)
#350F1F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340638;
/* rgb */ color: rgb(52, 6, 56);
/* oklch */ color: oklch(23.9% 0.099 324.5);
Tailwind
colors: {
  custom: {
    50: '#6e4c6f',
    500: '#340638',
    950: '#000000',
  },
}
SCSS
$custom: #340638;
$custom-light: #6e4c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340638",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 295.2,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23851,
    "c": 0.09861,
    "h": 324.5
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#340638
secondary
#287821
accent
#F73141
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340638

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

Preview Lab → · Contrast checker → · Palette generator →

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