#340C48#340C48

#340C48 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 311.5°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#340C48
RGBrgb(52, 12, 72)
HSLhsl(280, 71%, 16%)
HSVhsv(280, 83%, 28%)
CMYKcmyk(27.8%, 83.3%, 0%, 71.8%)
CIE-LABlab(12.36, 30.65, -28.33)
CIE-LCHlch(12.36, 41.74, 317.25°)
OKLaboklab(25.82% 0.0709 -0.0802)
OKLCHoklch(25.82% 0.107 311.5)
XYZxyz(2.7171, 1.4610, 6.2685)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C48 #20480C
analogous
#160C48 #340C48 #480C3E
triadic
#340C48 #48340C #0C4834
tetradic
#340C48 #48160C #20480C #0C3E48
square
#340C48 #48160C #20480C #0C3E48
split-complementary
#340C48 #3E480C #0C4816
monochromatic
#13041A #13041A #340C48 #5A157C #801DB1

Accessibility & contrast

On white

16.25
#340C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C48
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C48#FFFFFF#000000##FFFFFF
##340C481.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#311A29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340c48;
/* rgb */ color: rgb(52, 12, 72);
/* oklch */ color: oklch(25.8% 0.107 311.5);
Tailwind
colors: {
  custom: {
    50: '#6e507b',
    500: '#340c48',
    950: '#000000',
  },
}
SCSS
$custom: #340c48;
$custom-light: #6e507b;
$custom-dark: #000000;
JSON
{
  "hex": "#340c48",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 280,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25817,
    "c": 0.10707,
    "h": 311.5
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#340C48
secondary
#49842C
accent
#EE3A76
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C48

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

Preview Lab → · Contrast checker → · Palette generator →

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