#341E87#341E87

#341E87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.162 H 283.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#341E87
RGBrgb(52, 30, 135)
HSLhsl(253, 64%, 32%)
HSVhsv(253, 78%, 53%)
CMYKcmyk(61.5%, 77.8%, 0%, 47.1%)
CIE-LABlab(21.61, 39.74, -54.69)
CIE-LCHlch(21.61, 67.61, 306.00°)
OKLaboklab(34.19% 0.0374 -0.1577)
OKLCHoklch(34.19% 0.162 283.3)
XYZxyz(6.2523, 3.4075, 23.2452)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E87 #71871E
analogous
#1E3D87 #341E87 #681E87
triadic
#341E87 #87341E #1E8734
tetradic
#341E87 #871E3D #71871E #1E8768
square
#341E87 #871E3D #71871E #1E8768
split-complementary
#341E87 #87681E #3D871E
monochromatic
#0D0823 #211355 #341E87 #4729B9 #6749D7

Accessibility & contrast

On white

12.49
#341E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#341E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E87
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E87#FFFFFF#000000##FFFFFF
##341E871.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341e87;
/* rgb */ color: rgb(52, 30, 135);
/* oklch */ color: oklch(34.2% 0.162 283.3);
Tailwind
colors: {
  custom: {
    50: '#775dab',
    500: '#341e87',
    950: '#000000',
  },
}
SCSS
$custom: #341e87;
$custom-light: #775dab;
$custom-dark: #000000;
JSON
{
  "hex": "#341e87",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 252.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34185,
    "c": 0.16201,
    "h": 283.3
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#341E87
secondary
#A1B948
accent
#E741C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E87

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

Preview Lab → · Contrast checker → · Palette generator →

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