#341271#341271

#341271 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.147 H 291.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#341271
RGBrgb(52, 18, 113)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 84%, 44%)
CMYKcmyk(54%, 84.1%, 0%, 55.7%)
CIE-LABlab(17.25, 39.06, -47.84)
CIE-LCHlch(17.25, 61.76, 309.23°)
OKLaboklab(30.45% 0.053 -0.1375)
OKLCHoklch(30.45% 0.147 291.1)
XYZxyz(4.6123, 2.3547, 15.8311)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341271 #4F7112
analogous
#121F71 #341271 #631271
triadic
#341271 #713412 #127134
tetradic
#341271 #71121F #4F7112 #127163
square
#341271 #71121F #4F7112 #127163
split-complementary
#341271 #716312 #1F7112
monochromatic
#0C041A #1C0A3C #341271 #4C1AA6 #6523DB

Accessibility & contrast

On white

14.28
#341271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341271
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341271#FFFFFF#000000##FFFFFF
##3412711.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#1E2E42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341271;
/* rgb */ color: rgb(52, 18, 113);
/* oklch */ color: oklch(30.4% 0.147 291.1);
Tailwind
colors: {
  custom: {
    50: '#73559b',
    500: '#341271',
    950: '#000000',
  },
}
SCSS
$custom: #341271;
$custom-light: #73559b;
$custom-dark: #000000;
JSON
{
  "hex": "#341271",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 261.474,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3045,
    "c": 0.14738,
    "h": 291.1
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#341271
secondary
#7FA837
accent
#EF39AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341271

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

Preview Lab → · Contrast checker → · Palette generator →

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