#340A30#340A30

#340A30 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.085 H 332.0°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#340A30
RGBrgb(52, 10, 48)
HSLhsl(306, 68%, 12%)
HSVhsv(306, 81%, 20%)
CMYKcmyk(0%, 80.8%, 7.7%, 79.6%)
CIE-LABlab(10.26, 26.16, -14.52)
CIE-LCHlch(10.26, 29.92, 330.96°)
OKLaboklab(23.76% 0.075 -0.0399)
OKLCHoklch(23.76% 0.085 332)
XYZxyz(2.0582, 1.1607, 2.9114)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A30 #0A340E
analogous
#230A34 #340A30 #340A1B
triadic
#340A30 #30340A #0A3034
tetradic
#340A30 #34230A #0A340E #0A1B34
square
#340A30 #34230A #0A340E #0A1B34
split-complementary
#340A30 #1B340A #0A3423
monochromatic
#1A0518 #1A0518 #340A30 #67145F #9B1E8F

Accessibility & contrast

On white

17.04
#340A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340A30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A30
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A30#FFFFFF#000000##FFFFFF
##340A301.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081831
Deuteranopia (green-blind)
#171E2F
Tritanopia (blue-blind)
#370E1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a30;
/* rgb */ color: rgb(52, 10, 48);
/* oklch */ color: oklch(23.8% 0.085 332.0);
Tailwind
colors: {
  custom: {
    50: '#6d4d68',
    500: '#340a30',
    950: '#000000',
  },
}
SCSS
$custom: #340a30;
$custom-light: #6d4d68;
$custom-dark: #000000;
JSON
{
  "hex": "#340a30",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 48
  },
  "hsl": {
    "h": 305.714,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23755,
    "c": 0.0849,
    "h": 332
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#340A30
secondary
#28712F
accent
#EB4E3D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340A30

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

Preview Lab → · Contrast checker → · Palette generator →

#340A30 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva