#341578#341578

#341578 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.153 H 288.5°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#341578
RGBrgb(52, 21, 120)
HSLhsl(259, 70%, 28%)
HSVhsv(259, 83%, 47%)
CMYKcmyk(56.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(18.46, 39.72, -50.36)
CIE-LCHlch(18.46, 64.13, 308.26°)
OKLaboklab(31.52% 0.0484 -0.1449)
OKLCHoklch(31.52% 0.153 288.5)
XYZxyz(5.0735, 2.6222, 18.0045)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341578 #597815
analogous
#152778 #341578 #661578
triadic
#341578 #783415 #157834
tetradic
#341578 #781527 #597815 #157866
square
#341578 #781527 #597815 #157866
split-complementary
#341578 #786615 #277815
monochromatic
#0B051A #1D0C44 #341578 #4B1EAC #632DDA

Accessibility & contrast

On white

13.78
#341578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#341578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341578
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341578#FFFFFF#000000##FFFFFF
##3415781.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#183247
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341578;
/* rgb */ color: rgb(52, 21, 120);
/* oklch */ color: oklch(31.5% 0.153 288.5);
Tailwind
colors: {
  custom: {
    50: '#7457a0',
    500: '#341578',
    950: '#000000',
  },
}
SCSS
$custom: #341578;
$custom-light: #7457a0;
$custom-dark: #000000;
JSON
{
  "hex": "#341578",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 258.788,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31516,
    "c": 0.15277,
    "h": 288.5
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#341578
secondary
#8AAE3B
accent
#ED3BB5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #341578

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

Preview Lab → · Contrast checker → · Palette generator →

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