#340F49#340F49

#340F49 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.104 H 310.3°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#340F49
RGBrgb(52, 15, 73)
HSLhsl(278, 66%, 17%)
HSVhsv(278, 79%, 29%)
CMYKcmyk(28.8%, 79.5%, 0%, 71.4%)
CIE-LABlab(12.94, 29.49, -28.09)
CIE-LCHlch(12.94, 40.72, 316.39°)
OKLaboklab(26.26% 0.0673 -0.0795)
OKLCHoklch(26.26% 0.104 310.3)
XYZxyz(2.7894, 1.5528, 6.4548)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F49 #24490F
analogous
#170F49 #340F49 #490F41
triadic
#340F49 #49340F #0F4934
tetradic
#340F49 #49170F #24490F #0F4149
square
#340F49 #49170F #24490F #0F4149
split-complementary
#340F49 #41490F #0F4917
monochromatic
#120519 #120519 #340F49 #58197C #7C24AF

Accessibility & contrast

On white

16.02
#340F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F49
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F49#FFFFFF#000000##FFFFFF
##340F491.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#052248
Tritanopia (blue-blind)
#311C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340f49;
/* rgb */ color: rgb(52, 15, 73);
/* oklch */ color: oklch(26.3% 0.104 310.3);
Tailwind
colors: {
  custom: {
    50: '#6e517c',
    500: '#340f49',
    950: '#000000',
  },
}
SCSS
$custom: #340f49;
$custom-light: #6e517c;
$custom-dark: #000000;
JSON
{
  "hex": "#340f49",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 278.276,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26256,
    "c": 0.10419,
    "h": 310.3
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#340F49
secondary
#4E8330
accent
#E93F7C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340F49

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

Preview Lab → · Contrast checker → · Palette generator →

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