#340948#340948

#340948 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.111 H 312.0°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#340948
RGBrgb(52, 9, 72)
HSLhsl(281, 78%, 16%)
HSVhsv(281, 88%, 28%)
CMYKcmyk(27.8%, 87.5%, 0%, 71.8%)
CIE-LABlab(11.91, 31.93, -29.05)
CIE-LCHlch(11.91, 43.17, 317.70°)
OKLaboklab(25.51% 0.074 -0.0823)
OKLCHoklch(25.51% 0.111 312)
XYZxyz(2.6833, 1.3934, 6.2572)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340948 #1D4809
analogous
#140948 #340948 #48093C
triadic
#340948 #483409 #094834
tetradic
#340948 #481409 #1D4809 #093C48
square
#340948 #481409 #1D4809 #093C48
split-complementary
#340948 #3C4809 #094814
monochromatic
#14031B #14031B #340948 #5B107E #8317B5

Accessibility & contrast

On white

16.42
#340948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340948
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340948#FFFFFF#000000##FFFFFF
##3409481.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#012047
Tritanopia (blue-blind)
#321829
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340948;
/* rgb */ color: rgb(52, 9, 72);
/* oklch */ color: oklch(25.5% 0.111 312.0);
Tailwind
colors: {
  custom: {
    50: '#6f4e7b',
    500: '#340948',
    950: '#000000',
  },
}
SCSS
$custom: #340948;
$custom-light: #6f4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340948",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 280.952,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25505,
    "c": 0.11069,
    "h": 312
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#340948
secondary
#458527
accent
#F43471
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340948

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

Preview Lab → · Contrast checker → · Palette generator →

#340948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva