#341580#341580

#341580 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.162 H 286.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#341580
RGBrgb(52, 21, 128)
HSLhsl(257, 72%, 29%)
HSVhsv(257, 84%, 50%)
CMYKcmyk(59.4%, 83.6%, 0%, 49.8%)
CIE-LABlab(19.33, 42.05, -54.03)
CIE-LCHlch(19.33, 68.47, 307.89°)
OKLaboklab(32.37% 0.0456 -0.1556)
OKLCHoklch(32.37% 0.162 286.3)
XYZxyz(5.5794, 2.8246, 20.6691)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341580 #618015
analogous
#152C80 #341580 #6A1580
triadic
#341580 #803415 #158034
tetradic
#341580 #80152C #618015 #15806A
square
#341580 #80152C #618015 #15806A
split-complementary
#341580 #806A15 #2C8015
monochromatic
#0B041A #1F0C4B #341580 #491EB5 #6432DD

Accessibility & contrast

On white

13.42
#341580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341580
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341580#FFFFFF#000000##FFFFFF
##3415801.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#0D354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341580;
/* rgb */ color: rgb(52, 21, 128);
/* oklch */ color: oklch(32.4% 0.162 286.3);
Tailwind
colors: {
  custom: {
    50: '#7658a6',
    500: '#341580',
    950: '#000000',
  },
}
SCSS
$custom: #341580;
$custom-light: #7658a6;
$custom-dark: #000000;
JSON
{
  "hex": "#341580",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 257.383,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.16218,
    "h": 286.3
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#341580
secondary
#92B53C
accent
#EF39BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #341580

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

Preview Lab → · Contrast checker → · Palette generator →

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