#341E7D#341E7D

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

Color values

HEX#341E7D
RGBrgb(52, 30, 125)
HSLhsl(254, 61%, 30%)
HSVhsv(254, 76%, 49%)
CMYKcmyk(58.4%, 76%, 0%, 51%)
CIE-LABlab(20.59, 36.61, -50.05)
CIE-LCHlch(20.59, 62.01, 306.19°)
OKLaboklab(33.16% 0.04 -0.1441)
OKLCHoklch(33.16% 0.15 285.5)
XYZxyz(5.5810, 3.1390, 19.7099)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E7D #677D1E
analogous
#1E377D #341E7D #631E7D
triadic
#341E7D #7D341E #1E7D34
tetradic
#341E7D #7D1E37 #677D1E #1E7D63
square
#341E7D #7D1E37 #677D1E #1E7D63
split-complementary
#341E7D #7D631E #377D1E
monochromatic
#0B061A #1F124C #341E7D #492AAE #6443D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##341E7D#FFFFFF#000000##FFFFFF
##341E7D1.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)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#11384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341e7d;
/* rgb */ color: rgb(52, 30, 125);
/* oklch */ color: oklch(33.2% 0.150 285.5);
Tailwind
colors: {
  custom: {
    50: '#755ca4',
    500: '#341e7d',
    950: '#000000',
  },
}
SCSS
$custom: #341e7d;
$custom-light: #755ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#341e7d",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 253.895,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33163,
    "c": 0.14951,
    "h": 285.5
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#341E7D
secondary
#98B046
accent
#E443BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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