#341D7F#341D7F

#341D7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.153 H 285.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#341D7F
RGBrgb(52, 29, 127)
HSLhsl(254, 63%, 31%)
HSVhsv(254, 77%, 50%)
CMYKcmyk(59.1%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.60, 37.79, -51.31)
CIE-LCHlch(20.60, 63.72, 306.37°)
OKLaboklab(33.23% 0.0403 -0.1477)
OKLCHoklch(33.23% 0.153 285.2)
XYZxyz(5.6851, 3.1408, 20.3812)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D7F #687F1D
analogous
#1D377F #341D7F #651D7F
triadic
#341D7F #7F341D #1D7F34
tetradic
#341D7F #7F1D37 #687F1D #1D7F65
square
#341D7F #7F1D37 #687F1D #1D7F65
split-complementary
#341D7F #7F651D #377F1D
monochromatic
#0B061B #20124D #341D7F #4828B1 #6542D4

Accessibility & contrast

On white

12.90
#341D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D7F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D7F#FFFFFF#000000##FFFFFF
##341D7F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#0E384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341d7f;
/* rgb */ color: rgb(52, 29, 127);
/* oklch */ color: oklch(33.2% 0.153 285.2);
Tailwind
colors: {
  custom: {
    50: '#755ca5',
    500: '#341d7f',
    950: '#000000',
  },
}
SCSS
$custom: #341d7f;
$custom-light: #755ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#341d7f",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 254.082,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.15313,
    "h": 285.2
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#341D7F
secondary
#99B245
accent
#E642BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D7F

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

Preview Lab → · Contrast checker → · Palette generator →

#341D7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva