#340C4A#340C4A

#340C4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 310.2°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#340C4A
RGBrgb(52, 12, 74)
HSLhsl(279, 72%, 17%)
HSVhsv(279, 84%, 29%)
CMYKcmyk(29.7%, 83.8%, 0%, 71%)
CIE-LABlab(12.53, 31.15, -29.45)
CIE-LCHlch(12.53, 42.87, 316.61°)
OKLaboklab(25.99% 0.0705 -0.0835)
OKLCHoklch(25.99% 0.109 310.2)
XYZxyz(2.7834, 1.4875, 6.6177)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C4A #224A0C
analogous
#150C4A #340C4A #4A0C41
triadic
#340C4A #4A340C #0C4A34
tetradic
#340C4A #4A150C #224A0C #0C414A
square
#340C4A #4A150C #224A0C #0C414A
split-complementary
#340C4A #414A0C #0C4A15
monochromatic
#13041A #13041A #340C4A #59157F #7E1DB3

Accessibility & contrast

On white

16.19
#340C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C4A
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C4A#FFFFFF#000000##FFFFFF
##340C4A1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#012149
Tritanopia (blue-blind)
#311B2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340c4a;
/* rgb */ color: rgb(52, 12, 74);
/* oklch */ color: oklch(26.0% 0.109 310.2);
Tailwind
colors: {
  custom: {
    50: '#6f507d',
    500: '#340c4a',
    950: '#000000',
  },
}
SCSS
$custom: #340c4a;
$custom-light: #6f507d;
$custom-dark: #000000;
JSON
{
  "hex": "#340c4a",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 278.71,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25991,
    "c": 0.10928,
    "h": 310.2
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#340C4A
secondary
#4C862C
accent
#EF397A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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