#340831#340831

#340831 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.089 H 330.9°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#340831
RGBrgb(52, 8, 49)
HSLhsl(304, 73%, 12%)
HSVhsv(304, 85%, 20%)
CMYKcmyk(0%, 84.6%, 5.8%, 79.6%)
CIE-LABlab(10.00, 27.29, -15.68)
CIE-LCHlch(10.00, 31.47, 330.12°)
OKLaboklab(23.58% 0.0777 -0.0432)
OKLCHoklch(23.58% 0.089 330.9)
XYZxyz(2.0574, 1.1256, 3.0140)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340831 #08340B
analogous
#210834 #340831 #34081B
triadic
#340831 #313408 #083134
tetradic
#340831 #342108 #08340B #081B34
square
#340831 #342108 #08340B #081B34
split-complementary
#340831 #1B3408 #083421
monochromatic
#1B0419 #1B0419 #340831 #691063 #9E1895

Accessibility & contrast

On white

17.14
#340831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340831
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340831#FFFFFF#000000##FFFFFF
##3408311.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051832
Deuteranopia (green-blind)
#151E30
Tritanopia (blue-blind)
#360D1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340831;
/* rgb */ color: rgb(52, 8, 49);
/* oklch */ color: oklch(23.6% 0.089 330.9);
Tailwind
colors: {
  custom: {
    50: '#6d4c69',
    500: '#340831',
    950: '#000000',
  },
}
SCSS
$custom: #340831;
$custom-light: #6d4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#340831",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 304.091,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23583,
    "c": 0.08892,
    "h": 330.9
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#340831
secondary
#25732A
accent
#F04438
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340831

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

Preview Lab → · Contrast checker → · Palette generator →

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