#340D4C#340D4C

#340D4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.110 H 308.8°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#340D4C
RGBrgb(52, 13, 76)
HSLhsl(277, 71%, 17%)
HSVhsv(277, 83%, 30%)
CMYKcmyk(31.6%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.86, 31.20, -30.30)
CIE-LCHlch(12.86, 43.49, 315.85°)
OKLaboklab(26.28% 0.069 -0.086)
OKLCHoklch(26.28% 0.11 308.8)
XYZxyz(2.8643, 1.5398, 6.9824)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D4C #254C0D
analogous
#150D4C #340D4C #4C0D45
triadic
#340D4C #4C340D #0D4C34
tetradic
#340D4C #4C150D #254C0D #0D454C
square
#340D4C #4C150D #254C0D #0D454C
split-complementary
#340D4C #454C0D #0D4C15
monochromatic
#12041A #12041A #340D4C #581680 #7C1FB5

Accessibility & contrast

On white

16.06
#340D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#340D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D4C
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D4C#FFFFFF#000000##FFFFFF
##340D4C1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#301C2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340d4c;
/* rgb */ color: rgb(52, 13, 76);
/* oklch */ color: oklch(26.3% 0.110 308.8);
Tailwind
colors: {
  custom: {
    50: '#6f507e',
    500: '#340d4c',
    950: '#000000',
  },
}
SCSS
$custom: #340d4c;
$custom-light: #6f507e;
$custom-dark: #000000;
JSON
{
  "hex": "#340d4c",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 277.143,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26279,
    "c": 0.11026,
    "h": 308.8
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#340D4C
secondary
#50872E
accent
#EE3A7F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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