#340F3D#340F3D

#340F3D is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.091 H 319.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#340F3D
RGBrgb(52, 15, 61)
HSLhsl(288, 61%, 15%)
HSVhsv(288, 75%, 24%)
CMYKcmyk(14.8%, 75.4%, 0%, 76.1%)
CIE-LABlab(12.02, 26.52, -21.14)
CIE-LCHlch(12.02, 33.92, 321.44°)
OKLaboklab(25.3% 0.0685 -0.0591)
OKLCHoklch(25.3% 0.091 319.2)
XYZxyz(2.4292, 1.4087, 4.5579)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F3D #183D0F
analogous
#1D0F3D #340F3D #3D0F2F
triadic
#340F3D #3D340F #0F3D34
tetradic
#340F3D #3D1D0F #183D0F #0F2F3D
square
#340F3D #3D1D0F #183D0F #0F2F3D
split-complementary
#340F3D #2F3D0F #0F3D1D
monochromatic
#150619 #150619 #340F3D #5E1B6E #88279F

Accessibility & contrast

On white

16.38
#340F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F3D
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F3D#FFFFFF#000000##FFFFFF
##340F3D1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021D3E
Deuteranopia (green-blind)
#12213C
Tritanopia (blue-blind)
#341724
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340f3d;
/* rgb */ color: rgb(52, 15, 61);
/* oklch */ color: oklch(25.3% 0.091 319.2);
Tailwind
colors: {
  custom: {
    50: '#6d5173',
    500: '#340f3d',
    950: '#000000',
  },
}
SCSS
$custom: #340f3d;
$custom-light: #6d5173;
$custom-dark: #000000;
JSON
{
  "hex": "#340f3d",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 288.261,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.253,
    "c": 0.09051,
    "h": 319.2
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#340F3D
secondary
#3E7730
accent
#E44463
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #340F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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