#341E86#341E86

#341E86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.161 H 283.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#341E86
RGBrgb(52, 30, 134)
HSLhsl(253, 63%, 32%)
HSVhsv(253, 78%, 53%)
CMYKcmyk(61.2%, 77.6%, 0%, 47.5%)
CIE-LABlab(21.50, 39.43, -54.24)
CIE-LCHlch(21.50, 67.05, 306.02°)
OKLaboklab(34.08% 0.0376 -0.1563)
OKLCHoklch(34.08% 0.161 283.5)
XYZxyz(6.1822, 3.3794, 22.8762)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E86 #70861E
analogous
#1E3C86 #341E86 #681E86
triadic
#341E86 #86341E #1E8634
tetradic
#341E86 #861E3C #70861E #1E8668
square
#341E86 #861E3C #70861E #1E8668
split-complementary
#341E86 #86681E #3C861E
monochromatic
#0D0822 #211354 #341E86 #4729B8 #6648D6

Accessibility & contrast

On white

12.53
#341E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341E86
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E86#FFFFFF#000000##FFFFFF
##341E861.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341e86;
/* rgb */ color: rgb(52, 30, 134);
/* oklch */ color: oklch(34.1% 0.161 283.5);
Tailwind
colors: {
  custom: {
    50: '#765daa',
    500: '#341e86',
    950: '#000000',
  },
}
SCSS
$custom: #341e86;
$custom-light: #765daa;
$custom-dark: #000000;
JSON
{
  "hex": "#341e86",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 252.692,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34081,
    "c": 0.16079,
    "h": 283.5
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#341E86
secondary
#A0B847
accent
#E641C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E86

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

Preview Lab → · Contrast checker → · Palette generator →

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