#340B4F#340B4F

#340B4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.116 H 307.3°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#340B4F
RGBrgb(52, 11, 79)
HSLhsl(276, 76%, 18%)
HSVhsv(276, 86%, 31%)
CMYKcmyk(34.2%, 86.1%, 0%, 69%)
CIE-LABlab(12.82, 32.84, -32.42)
CIE-LCHlch(12.82, 46.15, 315.37°)
OKLaboklab(26.34% 0.0703 -0.0922)
OKLCHoklch(26.34% 0.116 307.3)
XYZxyz(2.9468, 1.5340, 7.5365)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B4F #264F0B
analogous
#120B4F #340B4F #4F0B48
triadic
#340B4F #4F340B #0B4F34
tetradic
#340B4F #4F120B #264F0B #0B484F
square
#340B4F #4F120B #264F0B #0B484F
split-complementary
#340B4F #484F0B #0B4F12
monochromatic
#12041B #12041B #340B4F #571285 #7B1ABA

Accessibility & contrast

On white

16.07
#340B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#340B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B4F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B4F#FFFFFF#000000##FFFFFF
##340B4F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2F1D2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340b4f;
/* rgb */ color: rgb(52, 11, 79);
/* oklch */ color: oklch(26.3% 0.116 307.3);
Tailwind
colors: {
  custom: {
    50: '#6f5081',
    500: '#340b4f',
    950: '#000000',
  },
}
SCSS
$custom: #340b4f;
$custom-light: #6f5081;
$custom-dark: #000000;
JSON
{
  "hex": "#340b4f",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 276.176,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26337,
    "c": 0.11593,
    "h": 307.3
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#340B4F
secondary
#518B2B
accent
#F23680
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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