#341171#341171

#341171 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.148 H 291.2°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#341171
RGBrgb(52, 17, 113)
HSLhsl(262, 74%, 25%)
HSVhsv(262, 85%, 44%)
CMYKcmyk(54%, 85%, 0%, 55.7%)
CIE-LABlab(17.10, 39.50, -48.09)
CIE-LCHlch(17.10, 62.23, 309.40°)
OKLaboklab(30.35% 0.0538 -0.1382)
OKLCHoklch(30.35% 0.148 291.2)
XYZxyz(4.5964, 2.3230, 15.8258)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341171 #4E7111
analogous
#111E71 #341171 #641171
triadic
#341171 #713411 #117134
tetradic
#341171 #71111E #4E7111 #117164
square
#341171 #71111E #4E7111 #117164
split-complementary
#341171 #716411 #1E7111
monochromatic
#0C041B #1C093C #341171 #4C19A6 #6521DB

Accessibility & contrast

On white

14.34
#341171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#341171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341171
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341171#FFFFFF#000000##FFFFFF
##3411711.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.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: #341171;
/* rgb */ color: rgb(52, 17, 113);
/* oklch */ color: oklch(30.3% 0.148 291.2);
Tailwind
colors: {
  custom: {
    50: '#73559b',
    500: '#341171',
    950: '#000000',
  },
}
SCSS
$custom: #341171;
$custom-light: #73559b;
$custom-dark: #000000;
JSON
{
  "hex": "#341171",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 261.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30347,
    "c": 0.1483,
    "h": 291.2
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#341171
secondary
#7EA836
accent
#F137AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341171

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

Preview Lab → · Contrast checker → · Palette generator →

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