#340E4B#340E4B

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

Color values

HEX#340E4B
RGBrgb(52, 14, 75)
HSLhsl(277, 69%, 17%)
HSVhsv(277, 81%, 29%)
CMYKcmyk(30.7%, 81.3%, 0%, 70.6%)
CIE-LABlab(12.94, 30.48, -29.48)
CIE-LCHlch(12.94, 42.41, 315.96°)
OKLaboklab(26.31% 0.0681 -0.0836)
OKLCHoklch(26.31% 0.108 309.2)
XYZxyz(2.8430, 1.5522, 6.8051)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E4B #254B0E
analogous
#160E4B #340E4B #4B0E44
triadic
#340E4B #4B340E #0E4B34
tetradic
#340E4B #4B160E #254B0E #0E444B
square
#340E4B #4B160E #254B0E #0E444B
split-complementary
#340E4B #444B0E #0E4B16
monochromatic
#12051A #12051A #340E4B #58187F #7C21B2

Accessibility & contrast

On white

16.03
#340E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E4B
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E4B#FFFFFF#000000##FFFFFF
##340E4B1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#311C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340e4b;
/* rgb */ color: rgb(52, 14, 75);
/* oklch */ color: oklch(26.3% 0.108 309.2);
Tailwind
colors: {
  custom: {
    50: '#6e517e',
    500: '#340e4b',
    950: '#000000',
  },
}
SCSS
$custom: #340e4b;
$custom-light: #6e517e;
$custom-dark: #000000;
JSON
{
  "hex": "#340e4b",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 277.377,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26306,
    "c": 0.10784,
    "h": 309.2
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#340E4B
secondary
#50862F
accent
#EB3C7E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #340E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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