#340E48#340E48

#340E48 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.104 H 311.1°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#340E48
RGBrgb(52, 14, 72)
HSLhsl(279, 67%, 17%)
HSVhsv(279, 81%, 28%)
CMYKcmyk(27.8%, 80.6%, 0%, 71.8%)
CIE-LABlab(12.68, 29.72, -27.80)
CIE-LCHlch(12.68, 40.70, 316.91°)
OKLaboklab(26.05% 0.0687 -0.0787)
OKLCHoklch(26.05% 0.104 311.1)
XYZxyz(2.7427, 1.5121, 6.2770)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E48 #22480E
analogous
#170E48 #340E48 #480E3F
triadic
#340E48 #48340E #0E4834
tetradic
#340E48 #48170E #22480E #0E3F48
square
#340E48 #48170E #22480E #0E3F48
split-complementary
#340E48 #3F480E #0E4817
monochromatic
#13051A #13051A #340E48 #59187B #7E22AE

Accessibility & contrast

On white

16.12
#340E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340E48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E48
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E48#FFFFFF#000000##FFFFFF
##340E481.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#052247
Tritanopia (blue-blind)
#311B2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340e48;
/* rgb */ color: rgb(52, 14, 72);
/* oklch */ color: oklch(26.0% 0.104 311.1);
Tailwind
colors: {
  custom: {
    50: '#6e517b',
    500: '#340e48',
    950: '#000000',
  },
}
SCSS
$custom: #340e48;
$custom-light: #6e517b;
$custom-dark: #000000;
JSON
{
  "hex": "#340e48",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 72
  },
  "hsl": {
    "h": 279.31,
    "s": 67.442,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26049,
    "c": 0.10444,
    "h": 311.1
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#340E48
secondary
#4C832F
accent
#EA3D79
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340E48

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

Preview Lab → · Contrast checker → · Palette generator →

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