#340830#340830

#340830 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.088 H 332.0°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#340830
RGBrgb(52, 8, 48)
HSLhsl(305, 73%, 12%)
HSVhsv(305, 85%, 20%)
CMYKcmyk(0%, 84.6%, 7.7%, 79.6%)
CIE-LABlab(9.93, 27.09, -15.04)
CIE-LCHlch(9.93, 30.99, 330.96°)
OKLaboklab(23.52% 0.0777 -0.0414)
OKLCHoklch(23.52% 0.088 332)
XYZxyz(2.0365, 1.1173, 2.9041)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340830 #08340C
analogous
#220834 #340830 #34081A
triadic
#340830 #303408 #083034
tetradic
#340830 #342208 #08340C #081A34
square
#340830 #342208 #08340C #081A34
split-complementary
#340830 #1A3408 #083422
monochromatic
#1B0418 #1B0418 #340830 #691061 #9E1892

Accessibility & contrast

On white

17.17
#340830 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340830
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340830#FFFFFF#000000##FFFFFF
##3408301.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061731
Deuteranopia (green-blind)
#161E2F
Tritanopia (blue-blind)
#370D1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340830;
/* rgb */ color: rgb(52, 8, 48);
/* oklch */ color: oklch(23.5% 0.088 332.0);
Tailwind
colors: {
  custom: {
    50: '#6d4c68',
    500: '#340830',
    950: '#000000',
  },
}
SCSS
$custom: #340830;
$custom-light: #6d4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#340830",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 48
  },
  "hsl": {
    "h": 305.455,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23516,
    "c": 0.088,
    "h": 332
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#340830
secondary
#25732C
accent
#F04938
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340830

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

Preview Lab → · Contrast checker → · Palette generator →

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