#341F86#341F86

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

Color values

HEX#341F86
RGBrgb(52, 31, 134)
HSLhsl(252, 62%, 32%)
HSVhsv(252, 77%, 53%)
CMYKcmyk(61.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.69, 38.89, -53.92)
CIE-LCHlch(21.69, 66.48, 305.80°)
OKLaboklab(34.21% 0.0369 -0.1554)
OKLCHoklch(34.21% 0.16 283.4)
XYZxyz(6.2079, 3.4309, 22.8847)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F86 #71861F
analogous
#1F3E86 #341F86 #681F86
triadic
#341F86 #86341F #1F8634
tetradic
#341F86 #861F3E #71861F #1F8668
square
#341F86 #861F3E #71861F #1F8668
split-complementary
#341F86 #86681F #3E861F
monochromatic
#0D0823 #211454 #341F86 #472AB8 #674AD5

Accessibility & contrast

On white

12.45
#341F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F86
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F86#FFFFFF#000000##FFFFFF
##341F861.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341f86;
/* rgb */ color: rgb(52, 31, 134);
/* oklch */ color: oklch(34.2% 0.160 283.4);
Tailwind
colors: {
  custom: {
    50: '#765daa',
    500: '#341f86',
    950: '#000000',
  },
}
SCSS
$custom: #341f86;
$custom-light: #765daa;
$custom-dark: #000000;
JSON
{
  "hex": "#341f86",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 252.233,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.15974,
    "h": 283.4
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#341F86
secondary
#A1B849
accent
#E542C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341F86

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

Preview Lab → · Contrast checker → · Palette generator →

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