#340F48#340F48

#340F48 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.103 H 310.9°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#340F48
RGBrgb(52, 15, 72)
HSLhsl(279, 66%, 17%)
HSVhsv(279, 79%, 28%)
CMYKcmyk(27.8%, 79.2%, 0%, 71.8%)
CIE-LABlab(12.86, 29.23, -27.52)
CIE-LCHlch(12.86, 40.15, 316.72°)
OKLaboklab(26.17% 0.0675 -0.0778)
OKLCHoklch(26.17% 0.103 310.9)
XYZxyz(2.7565, 1.5397, 6.2816)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F48 #23480F
analogous
#170F48 #340F48 #480F40
triadic
#340F48 #48340F #0F4834
tetradic
#340F48 #48170F #23480F #0F4048
square
#340F48 #48170F #23480F #0F4048
split-complementary
#340F48 #40480F #0F4817
monochromatic
#120519 #120519 #340F48 #591A7B #7D24AD

Accessibility & contrast

On white

16.06
#340F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F48
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F48#FFFFFF#000000##FFFFFF
##340F481.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#062247
Tritanopia (blue-blind)
#311C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340f48;
/* rgb */ color: rgb(52, 15, 72);
/* oklch */ color: oklch(26.2% 0.103 310.9);
Tailwind
colors: {
  custom: {
    50: '#6e517b',
    500: '#340f48',
    950: '#000000',
  },
}
SCSS
$custom: #340f48;
$custom-light: #6e517b;
$custom-dark: #000000;
JSON
{
  "hex": "#340f48",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 278.947,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26172,
    "c": 0.10304,
    "h": 310.9
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#340F48
secondary
#4D8230
accent
#E83F7B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340F48

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

Preview Lab → · Contrast checker → · Palette generator →

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