#340C30#340C30

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

Color values

HEX#340C30
RGBrgb(52, 12, 48)
HSLhsl(306, 63%, 13%)
HSVhsv(306, 77%, 20%)
CMYKcmyk(0%, 76.9%, 7.7%, 79.6%)
CIE-LABlab(10.61, 25.20, -13.99)
CIE-LCHlch(10.61, 28.82, 330.97°)
OKLaboklab(24% 0.0722 -0.0383)
OKLCHoklch(24% 0.082 332)
XYZxyz(2.0811, 1.2066, 2.9190)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C30 #0C3410
analogous
#240C34 #340C30 #340C1C
triadic
#340C30 #30340C #0C3034
tetradic
#340C30 #34240C #0C3410 #0C1C34
square
#340C30 #34240C #0C3410 #0C1C34
split-complementary
#340C30 #1C340C #0C3424
monochromatic
#190617 #190617 #340C30 #66175E #97238C

Accessibility & contrast

On white

16.92
#340C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C30
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C30#FFFFFF#000000##FFFFFF
##340C301.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1931
Deuteranopia (green-blind)
#181F2F
Tritanopia (blue-blind)
#37101C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340c30;
/* rgb */ color: rgb(52, 12, 48);
/* oklch */ color: oklch(24.0% 0.082 332.0);
Tailwind
colors: {
  custom: {
    50: '#6d4e68',
    500: '#340c30',
    950: '#000000',
  },
}
SCSS
$custom: #340c30;
$custom-light: #6d4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#340c30",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 306,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24002,
    "c": 0.08174,
    "h": 332
  },
  "luminance": 0.01206
}

Semantic roles & 50–950 ramp

primary
#340C30
secondary
#2C7033
accent
#E65342
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340C30

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

Preview Lab → · Contrast checker → · Palette generator →

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