#340C49#340C49

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

Color values

HEX#340C49
RGBrgb(52, 12, 73)
HSLhsl(279, 72%, 17%)
HSVhsv(279, 84%, 29%)
CMYKcmyk(28.8%, 83.6%, 0%, 71.4%)
CIE-LABlab(12.44, 30.90, -28.89)
CIE-LCHlch(12.44, 42.30, 316.92°)
OKLaboklab(25.9% 0.0707 -0.0818)
OKLCHoklch(25.9% 0.108 310.8)
XYZxyz(2.7500, 1.4741, 6.4417)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C49 #21490C
analogous
#160C49 #340C49 #490C40
triadic
#340C49 #49340C #0C4934
tetradic
#340C49 #49160C #21490C #0C4049
square
#340C49 #49160C #21490C #0C4049
split-complementary
#340C49 #40490C #0C4916
monochromatic
#13041A #13041A #340C49 #59157E #7F1DB2

Accessibility & contrast

On white

16.22
#340C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C49
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C49#FFFFFF#000000##FFFFFF
##340C491.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340c49;
/* rgb */ color: rgb(52, 12, 73);
/* oklch */ color: oklch(25.9% 0.108 310.8);
Tailwind
colors: {
  custom: {
    50: '#6e507c',
    500: '#340c49',
    950: '#000000',
  },
}
SCSS
$custom: #340c49;
$custom-light: #6e507c;
$custom-dark: #000000;
JSON
{
  "hex": "#340c49",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 279.344,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25904,
    "c": 0.10818,
    "h": 310.8
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#340C49
secondary
#4B852C
accent
#EE3978
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C49

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

Preview Lab → · Contrast checker → · Palette generator →

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