#341EA1#341EA1

#341EA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.193 H 278.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#341EA1
RGBrgb(52, 30, 161)
HSLhsl(250, 69%, 37%)
HSVhsv(250, 81%, 63%)
CMYKcmyk(67.7%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.42, 47.70, -66.11)
CIE-LCHlch(24.42, 81.53, 305.81°)
OKLaboklab(36.98% 0.0298 -0.1909)
OKLCHoklch(36.98% 0.193 278.9)
XYZxyz(8.3114, 4.2311, 34.0900)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341EA1 #8BA11E
analogous
#1E4AA1 #341EA1 #751EA1
triadic
#341EA1 #A1341E #1EA134
tetradic
#341EA1 #A11E4A #8BA11E #1EA175
square
#341EA1 #A11E4A #8BA11E #1EA175
split-complementary
#341EA1 #A1751E #4AA11E
monochromatic
#130B3A #23146D #341EA1 #4528D5 #7059E0

Accessibility & contrast

On white

11.37
#341EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#341EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341EA1
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341EA1#FFFFFF#000000##FFFFFF
##341EA11.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #341ea1;
/* rgb */ color: rgb(52, 30, 161);
/* oklch */ color: oklch(37.0% 0.193 278.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ebe',
    500: '#341ea1',
    950: '#000000',
  },
}
SCSS
$custom: #341ea1;
$custom-light: #7c5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#341ea1",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 250.076,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.19325,
    "h": 278.9
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#341EA1
secondary
#B2C457
accent
#EB3CCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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