#340D4F#340D4F

#340D4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.114 H 307.0°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#340D4F
RGBrgb(52, 13, 79)
HSLhsl(275, 72%, 18%)
HSVhsv(275, 84%, 31%)
CMYKcmyk(34.2%, 83.5%, 0%, 69%)
CIE-LABlab(13.12, 31.97, -31.93)
CIE-LCHlch(13.12, 45.19, 315.04°)
OKLaboklab(26.55% 0.0683 -0.0908)
OKLCHoklch(26.55% 0.114 307)
XYZxyz(2.9711, 1.5825, 7.5445)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D4F #284F0D
analogous
#130D4F #340D4F #4F0D49
triadic
#340D4F #4F340D #0D4F34
tetradic
#340D4F #4F130D #284F0D #0D494F
square
#340D4F #4F130D #284F0D #0D494F
split-complementary
#340D4F #494F0D #0D4F13
monochromatic
#11041A #11041A #340D4F #571684 #791EB8

Accessibility & contrast

On white

15.95
#340D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#340D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D4F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D4F#FFFFFF#000000##FFFFFF
##340D4F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2F1D2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340d4f;
/* rgb */ color: rgb(52, 13, 79);
/* oklch */ color: oklch(26.5% 0.114 307.0);
Tailwind
colors: {
  custom: {
    50: '#6f5181',
    500: '#340d4f',
    950: '#000000',
  },
}
SCSS
$custom: #340d4f;
$custom-light: #6f5181;
$custom-dark: #000000;
JSON
{
  "hex": "#340d4f",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 275.455,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26548,
    "c": 0.11361,
    "h": 307
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#340D4F
secondary
#548A2E
accent
#EE3983
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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