#340837#340837

#340837 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.095 H 325.2°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#340837
RGBrgb(52, 8, 55)
HSLhsl(296, 75%, 12%)
HSVhsv(296, 85%, 22%)
CMYKcmyk(5.5%, 85.5%, 0%, 78.4%)
CIE-LABlab(10.41, 28.51, -19.40)
CIE-LCHlch(10.41, 34.49, 325.76°)
OKLaboklab(24.01% 0.0777 -0.054)
OKLCHoklch(24.01% 0.095 325.2)
XYZxyz(2.1925, 1.1797, 3.7259)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340837 #0B3708
analogous
#1C0837 #340837 #370823
triadic
#340837 #373408 #083734
tetradic
#340837 #371C08 #0B3708 #082337
square
#340837 #371C08 #0B3708 #082337
split-complementary
#340837 #233708 #08371C
monochromatic
#19041B #19041B #340837 #67106C #9918A2

Accessibility & contrast

On white

16.99
#340837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340837
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340837#FFFFFF#000000##FFFFFF
##3408371.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#121E36
Tritanopia (blue-blind)
#35101F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340837;
/* rgb */ color: rgb(52, 8, 55);
/* oklch */ color: oklch(24.0% 0.095 325.2);
Tailwind
colors: {
  custom: {
    50: '#6e4d6e',
    500: '#340837',
    950: '#000000',
  },
}
SCSS
$custom: #340837;
$custom-light: #6e4d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340837",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 296.17,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.24009,
    "c": 0.09465,
    "h": 325.2
  },
  "luminance": 0.0118
}

Semantic roles & 50–950 ramp

primary
#340837
secondary
#2A7625
accent
#F13742
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340837

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

Preview Lab → · Contrast checker → · Palette generator →

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