#340C4F#340C4F

#340C4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.115 H 307.1°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#340C4F
RGBrgb(52, 12, 79)
HSLhsl(276, 74%, 18%)
HSVhsv(276, 85%, 31%)
CMYKcmyk(34.2%, 84.8%, 0%, 69%)
CIE-LABlab(12.97, 32.42, -32.18)
CIE-LCHlch(12.97, 45.68, 315.21°)
OKLaboklab(26.44% 0.0693 -0.0915)
OKLCHoklch(26.44% 0.115 307.1)
XYZxyz(2.9586, 1.5576, 7.5404)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C4F #274F0C
analogous
#130C4F #340C4F #4F0C48
triadic
#340C4F #4F340C #0C4F34
tetradic
#340C4F #4F130C #274F0C #0C484F
square
#340C4F #4F130C #274F0C #0C484F
split-complementary
#340C4F #484F0C #0C4F13
monochromatic
#11041B #11041B #340C4F #571484 #7A1CB9

Accessibility & contrast

On white

16.01
#340C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C4F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C4F#FFFFFF#000000##FFFFFF
##340C4F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340c4f;
/* rgb */ color: rgb(52, 12, 79);
/* oklch */ color: oklch(26.4% 0.115 307.1);
Tailwind
colors: {
  custom: {
    50: '#6f5081',
    500: '#340c4f',
    950: '#000000',
  },
}
SCSS
$custom: #340c4f;
$custom-light: #6f5081;
$custom-dark: #000000;
JSON
{
  "hex": "#340c4f",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 275.821,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2644,
    "c": 0.1148,
    "h": 307.1
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#340C4F
secondary
#528B2C
accent
#F03882
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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