#341E7F#341E7F

#341E7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 285.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#341E7F
RGBrgb(52, 30, 127)
HSLhsl(254, 62%, 31%)
HSVhsv(254, 76%, 50%)
CMYKcmyk(59.1%, 76.4%, 0%, 50.2%)
CIE-LABlab(20.79, 37.24, -50.99)
CIE-LCHlch(20.79, 63.14, 306.14°)
OKLaboklab(33.36% 0.0395 -0.1468)
OKLCHoklch(33.36% 0.152 285)
XYZxyz(5.7100, 3.1906, 20.3895)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E7F #697F1E
analogous
#1E387F #341E7F #641E7F
triadic
#341E7F #7F341E #1E7F34
tetradic
#341E7F #7F1E38 #697F1E #1E7F64
square
#341E7F #7F1E38 #697F1E #1E7F64
split-complementary
#341E7F #7F641E #387F1E
monochromatic
#0B071C #20124D #341E7F #482AB1 #6544D3

Accessibility & contrast

On white

12.82
#341E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E7F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E7F#FFFFFF#000000##FFFFFF
##341E7F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341e7f;
/* rgb */ color: rgb(52, 30, 127);
/* oklch */ color: oklch(33.4% 0.152 285.0);
Tailwind
colors: {
  custom: {
    50: '#755ca5',
    500: '#341e7f',
    950: '#000000',
  },
}
SCSS
$custom: #341e7f;
$custom-light: #755ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#341e7f",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 253.608,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33364,
    "c": 0.15203,
    "h": 285
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#341E7F
secondary
#9AB247
accent
#E543C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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