#341E7E#341E7E

#341E7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.151 H 285.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#341E7E
RGBrgb(52, 30, 126)
HSLhsl(254, 62%, 31%)
HSVhsv(254, 76%, 49%)
CMYKcmyk(58.7%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.69, 36.93, -50.52)
CIE-LCHlch(20.69, 62.58, 306.17°)
OKLaboklab(33.26% 0.0397 -0.1454)
OKLCHoklch(33.26% 0.151 285.3)
XYZxyz(5.6452, 3.1646, 20.0480)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E7E #687E1E
analogous
#1E387E #341E7E #641E7E
triadic
#341E7E #7E341E #1E7E34
tetradic
#341E7E #7E1E38 #687E1E #1E7E64
square
#341E7E #7E1E38 #687E1E #1E7E64
split-complementary
#341E7E #7E641E #387E1E
monochromatic
#0B061B #20124D #341E7E #482AAF #6544D2

Accessibility & contrast

On white

12.86
#341E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341E7E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E7E#FFFFFF#000000##FFFFFF
##341E7E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#0F384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341e7e;
/* rgb */ color: rgb(52, 30, 126);
/* oklch */ color: oklch(33.3% 0.151 285.3);
Tailwind
colors: {
  custom: {
    50: '#755ca4',
    500: '#341e7e',
    950: '#000000',
  },
}
SCSS
$custom: #341e7e;
$custom-light: #755ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#341e7e",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 253.75,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33263,
    "c": 0.15078,
    "h": 285.3
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#341E7E
secondary
#99B147
accent
#E543C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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