#340B4E#340B4E

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

Color values

HEX#340B4E
RGBrgb(52, 11, 78)
HSLhsl(277, 75%, 17%)
HSVhsv(277, 86%, 31%)
CMYKcmyk(33.3%, 85.9%, 0%, 69.4%)
CIE-LABlab(12.73, 32.59, -31.88)
CIE-LCHlch(12.73, 45.59, 315.63°)
OKLaboklab(26.25% 0.0705 -0.0906)
OKLCHoklch(26.25% 0.115 307.9)
XYZxyz(2.9107, 1.5195, 7.3462)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B4E #254E0B
analogous
#120B4E #340B4E #4E0B47
triadic
#340B4E #4E340B #0B4E34
tetradic
#340B4E #4E120B #254E0B #0B474E
square
#340B4E #4E120B #254E0B #0B474E
split-complementary
#340B4E #474E0B #0B4E12
monochromatic
#12041B #12041B #340B4E #581384 #7C1AB9

Accessibility & contrast

On white

16.11
#340B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B4E
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B4E#FFFFFF#000000##FFFFFF
##340B4E1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#301C2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340b4e;
/* rgb */ color: rgb(52, 11, 78);
/* oklch */ color: oklch(26.2% 0.115 307.9);
Tailwind
colors: {
  custom: {
    50: '#6f5080',
    500: '#340b4e',
    950: '#000000',
  },
}
SCSS
$custom: #340b4e;
$custom-light: #6f5080;
$custom-dark: #000000;
JSON
{
  "hex": "#340b4e",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 276.716,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26245,
    "c": 0.11485,
    "h": 307.9
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#340B4E
secondary
#508A2B
accent
#F2367F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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