#340938#340938

#340938 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.094 H 324.2°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#340938
RGBrgb(52, 9, 56)
HSLhsl(295, 72%, 13%)
HSVhsv(295, 84%, 22%)
CMYKcmyk(7.1%, 83.9%, 0%, 78%)
CIE-LABlab(10.64, 28.26, -19.75)
CIE-LCHlch(10.64, 34.48, 325.05°)
OKLaboklab(24.2% 0.0764 -0.055)
OKLCHoklch(24.2% 0.094 324.2)
XYZxyz(2.2276, 1.2111, 3.8570)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340938 #0D3809
analogous
#1D0938 #340938 #380924
triadic
#340938 #383409 #093834
tetradic
#340938 #381D09 #0D3809 #092438
square
#340938 #381D09 #0D3809 #092438
split-complementary
#340938 #243809 #09381D
monochromatic
#18041A #18041A #340938 #65116D #961AA1

Accessibility & contrast

On white

16.91
#340938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340938
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340938#FFFFFF#000000##FFFFFF
##3409381.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#121E37
Tritanopia (blue-blind)
#35111F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340938;
/* rgb */ color: rgb(52, 9, 56);
/* oklch */ color: oklch(24.2% 0.094 324.2);
Tailwind
colors: {
  custom: {
    50: '#6e4d6f',
    500: '#340938',
    950: '#000000',
  },
}
SCSS
$custom: #340938;
$custom-light: #6e4d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340938",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 294.894,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24198,
    "c": 0.09419,
    "h": 324.2
  },
  "luminance": 0.01211
}

Semantic roles & 50–950 ramp

primary
#340938
secondary
#2D7627
accent
#EF3948
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340938

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

Preview Lab → · Contrast checker → · Palette generator →

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