#340B48#340B48

#340B48 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.108 H 311.7°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#340B48
RGBrgb(52, 11, 72)
HSLhsl(280, 73%, 16%)
HSVhsv(280, 85%, 28%)
CMYKcmyk(27.8%, 84.7%, 0%, 71.8%)
CIE-LABlab(12.20, 31.09, -28.58)
CIE-LCHlch(12.20, 42.23, 317.41°)
OKLaboklab(25.71% 0.072 -0.0809)
OKLCHoklch(25.71% 0.108 311.7)
XYZxyz(2.7053, 1.4374, 6.2646)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B48 #1F480B
analogous
#160B48 #340B48 #480B3E
triadic
#340B48 #48340B #0B4834
tetradic
#340B48 #48160B #1F480B #0B3E48
square
#340B48 #48160B #1F480B #0B3E48
split-complementary
#340B48 #3E480B #0B4816
monochromatic
#13041B #13041B #340B48 #5A137D #811BB2

Accessibility & contrast

On white

16.31
#340B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B48
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B48#FFFFFF#000000##FFFFFF
##340B481.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#022147
Tritanopia (blue-blind)
#311929
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340b48;
/* rgb */ color: rgb(52, 11, 72);
/* oklch */ color: oklch(25.7% 0.108 311.7);
Tailwind
colors: {
  custom: {
    50: '#6e4f7b',
    500: '#340b48',
    950: '#000000',
  },
}
SCSS
$custom: #340b48;
$custom-light: #6e4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340b48",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 280.328,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25709,
    "c": 0.10833,
    "h": 311.7
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#340B48
secondary
#48842A
accent
#F03874
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B48

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

Preview Lab → · Contrast checker → · Palette generator →

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