#341571#341571

#341571 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.144 H 290.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#341571
RGBrgb(52, 21, 113)
HSLhsl(260, 69%, 26%)
HSVhsv(260, 81%, 44%)
CMYKcmyk(54%, 81.4%, 0%, 55.7%)
CIE-LABlab(17.73, 37.67, -47.05)
CIE-LCHlch(17.73, 60.27, 308.68°)
OKLaboklab(30.79% 0.0508 -0.1352)
OKLCHoklch(30.79% 0.144 290.6)
XYZxyz(4.6641, 2.4585, 15.8484)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341571 #527115
analogous
#152471 #341571 #621571
triadic
#341571 #713415 #157134
tetradic
#341571 #711524 #527115 #157162
square
#341571 #711524 #527115 #157162
split-complementary
#341571 #716215 #247115
monochromatic
#0C051A #1C0B3D #341571 #4C1FA5 #6429D7

Accessibility & contrast

On white

14.08
#341571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#341571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341571
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341571#FFFFFF#000000##FFFFFF
##3415711.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#1E2F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341571;
/* rgb */ color: rgb(52, 21, 113);
/* oklch */ color: oklch(30.8% 0.144 290.6);
Tailwind
colors: {
  custom: {
    50: '#73579b',
    500: '#341571',
    950: '#000000',
  },
}
SCSS
$custom: #341571;
$custom-light: #73579b;
$custom-dark: #000000;
JSON
{
  "hex": "#341571",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 260.217,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30785,
    "c": 0.14443,
    "h": 290.6
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#341571
secondary
#83A73B
accent
#EB3CB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341571

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

Preview Lab → · Contrast checker → · Palette generator →

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