#340E5D#340E5D

#340E5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.128 H 299.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#340E5D
RGBrgb(52, 14, 93)
HSLhsl(269, 74%, 21%)
HSVhsv(269, 85%, 36%)
CMYKcmyk(44.1%, 84.9%, 0%, 63.5%)
CIE-LABlab(14.59, 35.24, -39.03)
CIE-LCHlch(14.59, 52.59, 312.08°)
OKLaboklab(27.98% 0.0632 -0.1116)
OKLCHoklch(27.98% 0.128 299.5)
XYZxyz(3.5485, 1.8344, 10.5209)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E5D #375D0E
analogous
#0E0F5D #340E5D #5B0E5D
triadic
#340E5D #5D340E #0E5D34
tetradic
#340E5D #5D0E0F #375D0E #0E5D5B
square
#340E5D #5D0E0F #375D0E #0E5D5B
split-complementary
#340E5D #5D5B0E #0F5D0E
monochromatic
#0F041B #160628 #340E5D #521692 #6F1EC7

Accessibility & contrast

On white

15.36
#340E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#340E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E5D
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E5D#FFFFFF#000000##FFFFFF
##340E5D1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#2A2436
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #340e5d;
/* rgb */ color: rgb(52, 14, 93);
/* oklch */ color: oklch(28.0% 0.128 299.5);
Tailwind
colors: {
  custom: {
    50: '#71528c',
    500: '#340e5d',
    950: '#000000',
  },
}
SCSS
$custom: #340e5d;
$custom-light: #71528c;
$custom-dark: #000000;
JSON
{
  "hex": "#340e5d",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 268.861,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27984,
    "c": 0.1283,
    "h": 299.5
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#340E5D
secondary
#659730
accent
#F03797
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #340E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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