#340B46#340B46

#340B46 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.106 H 313.0°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#340B46
RGBrgb(52, 11, 70)
HSLhsl(282, 73%, 16%)
HSVhsv(282, 84%, 27%)
CMYKcmyk(25.7%, 84.3%, 0%, 72.5%)
CIE-LABlab(12.04, 30.60, -27.46)
CIE-LCHlch(12.04, 41.12, 318.10°)
OKLaboklab(25.54% 0.0724 -0.0776)
OKLCHoklch(25.54% 0.106 313)
XYZxyz(2.6411, 1.4117, 5.9265)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B46 #1D460B
analogous
#160B46 #340B46 #460B3A
triadic
#340B46 #46340B #0B4634
tetradic
#340B46 #46160B #1D460B #0B3A46
square
#340B46 #46160B #1D460B #0B3A46
split-complementary
#340B46 #3A460B #0B4616
monochromatic
#14041A #14041A #340B46 #5B137B #831CB0

Accessibility & contrast

On white

16.38
#340B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B46
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B46#FFFFFF#000000##FFFFFF
##340B461.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#052045
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340b46;
/* rgb */ color: rgb(52, 11, 70);
/* oklch */ color: oklch(25.5% 0.106 313.0);
Tailwind
colors: {
  custom: {
    50: '#6e4f7a',
    500: '#340b46',
    950: '#000000',
  },
}
SCSS
$custom: #340b46;
$custom-light: #6e4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#340b46",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 281.695,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25536,
    "c": 0.10617,
    "h": 313
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#340B46
secondary
#45822A
accent
#F03870
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B46

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

Preview Lab → · Contrast checker → · Palette generator →

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