#340B4A#340B4A

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

Color values

HEX#340B4A
RGBrgb(52, 11, 74)
HSLhsl(279, 74%, 17%)
HSVhsv(279, 85%, 29%)
CMYKcmyk(29.7%, 85.1%, 0%, 71%)
CIE-LABlab(12.38, 31.59, -29.69)
CIE-LCHlch(12.38, 43.35, 316.77°)
OKLaboklab(25.89% 0.0716 -0.0842)
OKLCHoklch(25.89% 0.11 310.4)
XYZxyz(2.7716, 1.4639, 6.6138)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B4A #214A0B
analogous
#150B4A #340B4A #4A0B41
triadic
#340B4A #4A340B #0B4A34
tetradic
#340B4A #4A150B #214A0B #0B414A
square
#340B4A #4A150B #214A0B #0B414A
split-complementary
#340B4A #414A0B #0B4A15
monochromatic
#13041B #13041B #340B4A #59137F #7F1BB5

Accessibility & contrast

On white

16.24
#340B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B4A
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B4A#FFFFFF#000000##FFFFFF
##340B4A1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#311A2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340b4a;
/* rgb */ color: rgb(52, 11, 74);
/* oklch */ color: oklch(25.9% 0.110 310.4);
Tailwind
colors: {
  custom: {
    50: '#6f4f7d',
    500: '#340b4a',
    950: '#000000',
  },
}
SCSS
$custom: #340b4a;
$custom-light: #6f4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#340b4a",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 279.048,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25885,
    "c": 0.11049,
    "h": 310.4
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#340B4A
secondary
#4B862B
accent
#F13778
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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