#340E4A#340E4A

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

Color values

HEX#340E4A
RGBrgb(52, 14, 74)
HSLhsl(278, 68%, 17%)
HSVhsv(278, 81%, 29%)
CMYKcmyk(29.7%, 81.1%, 0%, 71%)
CIE-LABlab(12.85, 30.23, -28.92)
CIE-LCHlch(12.85, 41.84, 316.26°)
OKLaboklab(26.22% 0.0683 -0.0819)
OKLCHoklch(26.22% 0.107 309.8)
XYZxyz(2.8090, 1.5386, 6.6262)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E4A #244A0E
analogous
#160E4A #340E4A #4A0E42
triadic
#340E4A #4A340E #0E4A34
tetradic
#340E4A #4A160E #244A0E #0E424A
square
#340E4A #4A160E #244A0E #0E424A
split-complementary
#340E4A #424A0E #0E4A16
monochromatic
#12051A #12051A #340E4A #58187D #7C21B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340E4A#FFFFFF#000000##FFFFFF
##340E4A1.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)
#00204C
Deuteranopia (green-blind)
#032249
Tritanopia (blue-blind)
#311C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340e4a;
/* rgb */ color: rgb(52, 14, 74);
/* oklch */ color: oklch(26.2% 0.107 309.8);
Tailwind
colors: {
  custom: {
    50: '#6e517d',
    500: '#340e4a',
    950: '#000000',
  },
}
SCSS
$custom: #340e4a;
$custom-light: #6e517d;
$custom-dark: #000000;
JSON
{
  "hex": "#340e4a",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 278,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2622,
    "c": 0.1067,
    "h": 309.8
  },
  "luminance": 0.01539
}

Semantic roles & 50–950 ramp

primary
#340E4A
secondary
#4E852F
accent
#EB3D7D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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