#340E4F#340E4F

#340E4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.112 H 306.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#340E4F
RGBrgb(52, 14, 79)
HSLhsl(275, 70%, 18%)
HSVhsv(275, 82%, 31%)
CMYKcmyk(34.2%, 82.3%, 0%, 69%)
CIE-LABlab(13.28, 31.52, -31.67)
CIE-LCHlch(13.28, 44.68, 314.86°)
OKLaboklab(26.66% 0.0673 -0.09)
OKLCHoklch(26.66% 0.112 306.8)
XYZxyz(2.9842, 1.6087, 7.5489)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E4F #294F0E
analogous
#130E4F #340E4F #4F0E49
triadic
#340E4F #4F340E #0E4F34
tetradic
#340E4F #4F130E #294F0E #0E494F
square
#340E4F #4F130E #294F0E #0E494F
split-complementary
#340E4F #494F0E #0E4F13
monochromatic
#11051A #12051B #340E4F #561783 #7820B7

Accessibility & contrast

On white

15.89
#340E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E4F
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E4F#FFFFFF#000000##FFFFFF
##340E4F1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340e4f;
/* rgb */ color: rgb(52, 14, 79);
/* oklch */ color: oklch(26.7% 0.112 306.8);
Tailwind
colors: {
  custom: {
    50: '#6f5181',
    500: '#340e4f',
    950: '#000000',
  },
}
SCSS
$custom: #340e4f;
$custom-light: #6f5181;
$custom-dark: #000000;
JSON
{
  "hex": "#340e4f",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 275.077,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2666,
    "c": 0.11239,
    "h": 306.8
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#340E4F
secondary
#558A2F
accent
#ED3B85
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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