#340C3F#340C3F

#340C3F is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.097 H 318.0°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#340C3F
RGBrgb(52, 12, 63)
HSLhsl(287, 68%, 15%)
HSVhsv(287, 81%, 25%)
CMYKcmyk(17.5%, 81%, 0%, 75.3%)
CIE-LABlab(11.63, 28.48, -23.17)
CIE-LCHlch(11.63, 36.72, 320.87°)
OKLaboklab(25.07% 0.0723 -0.0651)
OKLCHoklch(25.07% 0.097 318)
XYZxyz(2.4447, 1.3520, 4.8338)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C3F #173F0C
analogous
#1B0C3F #340C3F #3F0C31
triadic
#340C3F #3F340C #0C3F34
tetradic
#340C3F #3F1B0C #173F0C #0C313F
square
#340C3F #3F1B0C #173F0C #0C313F
split-complementary
#340C3F #313F0C #0C3F1B
monochromatic
#15051A #15051A #340C3F #5E1672 #8920A6

Accessibility & contrast

On white

16.53
#340C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340C3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C3F
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C3F#FFFFFF#000000##FFFFFF
##340C3F1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#0E203E
Tritanopia (blue-blind)
#341624
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340c3f;
/* rgb */ color: rgb(52, 12, 63);
/* oklch */ color: oklch(25.1% 0.097 318.0);
Tailwind
colors: {
  custom: {
    50: '#6e4f74',
    500: '#340c3f',
    950: '#000000',
  },
}
SCSS
$custom: #340c3f;
$custom-light: #6e4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#340c3f",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 287.059,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25074,
    "c": 0.09726,
    "h": 318
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#340C3F
secondary
#3D7B2C
accent
#EB3D62
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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