#341986#341986

#341986 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.166 H 284.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#341986
RGBrgb(52, 25, 134)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 81%, 53%)
CMYKcmyk(61.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.62, 41.96, -55.69)
CIE-LCHlch(20.62, 69.73, 307.00°)
OKLaboklab(33.46% 0.041 -0.1605)
OKLCHoklch(33.46% 0.166 284.3)
XYZxyz(6.0656, 3.1462, 22.8373)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341986 #6B8619
analogous
#193586 #341986 #6A1986
triadic
#341986 #863419 #198634
tetradic
#341986 #861935 #6B8619 #19866A
square
#341986 #861935 #6B8619 #19866A
split-complementary
#341986 #866A19 #358619
monochromatic
#0C061F #200F52 #341986 #4823BA #653EDB

Accessibility & contrast

On white

12.89
#341986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341986
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341986#FFFFFF#000000##FFFFFF
##3419861.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341986;
/* rgb */ color: rgb(52, 25, 134);
/* oklch */ color: oklch(33.5% 0.166 284.3);
Tailwind
colors: {
  custom: {
    50: '#775aaa',
    500: '#341986',
    950: '#000000',
  },
}
SCSS
$custom: #341986;
$custom-light: #775aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#341986",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 254.862,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33464,
    "c": 0.16568,
    "h": 284.3
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#341986
secondary
#9CBA41
accent
#EB3CC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341986

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

Preview Lab → · Contrast checker → · Palette generator →

#341986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva