#341E71#341E71

#341E71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.134 H 288.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#341E71
RGBrgb(52, 30, 113)
HSLhsl(256, 58%, 28%)
HSVhsv(256, 73%, 44%)
CMYKcmyk(54%, 73.5%, 0%, 55.7%)
CIE-LABlab(19.44, 32.85, -44.25)
CIE-LCHlch(19.44, 55.11, 306.58°)
OKLaboklab(31.99% 0.0427 -0.1271)
OKLCHoklch(31.99% 0.134 288.6)
XYZxyz(4.8602, 2.8506, 15.9137)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E71 #5B711E
analogous
#1E3171 #341E71 #5D1E71
triadic
#341E71 #71341E #1E7134
tetradic
#341E71 #711E31 #5B711E #1E715D
square
#341E71 #711E31 #5B711E #1E715D
split-complementary
#341E71 #715D1E #31711E
monochromatic
#0B0618 #1E1141 #341E71 #4A2BA1 #633ECC

Accessibility & contrast

On white

13.37
#341E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E71
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E71#FFFFFF#000000##FFFFFF
##341E711.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#1D3445
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341e71;
/* rgb */ color: rgb(52, 30, 113);
/* oklch */ color: oklch(32.0% 0.134 288.6);
Tailwind
colors: {
  custom: {
    50: '#725c9b',
    500: '#341e71',
    950: '#000000',
  },
}
SCSS
$custom: #341e71;
$custom-light: #725c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#341e71",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 255.904,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.13408,
    "h": 288.6
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#341E71
secondary
#8CA546
accent
#E147B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #341E71

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

Preview Lab → · Contrast checker → · Palette generator →

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