#340937#340937

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

Color values

HEX#340937
RGBrgb(52, 9, 55)
HSLhsl(296, 72%, 13%)
HSVhsv(296, 84%, 22%)
CMYKcmyk(5.5%, 83.6%, 0%, 78.4%)
CIE-LABlab(10.57, 28.05, -19.15)
CIE-LCHlch(10.57, 33.96, 325.69°)
OKLaboklab(24.12% 0.0765 -0.0533)
OKLCHoklch(24.12% 0.093 325.1)
XYZxyz(2.2034, 1.2014, 3.7295)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340937 #0C3709
analogous
#1D0937 #340937 #370923
triadic
#340937 #373409 #093734
tetradic
#340937 #371D09 #0C3709 #092337
square
#340937 #371D09 #0C3709 #092337
split-complementary
#340937 #233709 #09371D
monochromatic
#19041A #19041A #340937 #66126C #971AA0

Accessibility & contrast

On white

16.93
#340937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340937
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340937#FFFFFF#000000##FFFFFF
##3409371.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340937;
/* rgb */ color: rgb(52, 9, 55);
/* oklch */ color: oklch(24.1% 0.093 325.1);
Tailwind
colors: {
  custom: {
    50: '#6e4d6e',
    500: '#340937',
    950: '#000000',
  },
}
SCSS
$custom: #340937;
$custom-light: #6e4d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340937",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 296.087,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24124,
    "c": 0.0932,
    "h": 325.1
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#340937
secondary
#2C7527
accent
#EF3945
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340937

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

Preview Lab → · Contrast checker → · Palette generator →

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