#341786#341786

#341786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 284.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#341786
RGBrgb(52, 23, 134)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 53%)
CMYKcmyk(61.2%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.30, 42.90, -56.22)
CIE-LCHlch(20.30, 70.72, 307.34°)
OKLaboklab(33.24% 0.0423 -0.162)
OKLCHoklch(33.24% 0.167 284.6)
XYZxyz(6.0243, 3.0637, 22.8235)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341786 #698617
analogous
#173186 #341786 #6B1786
triadic
#341786 #863417 #178634
tetradic
#341786 #861731 #698617 #17866B
square
#341786 #861731 #698617 #17866B
split-complementary
#341786 #866B17 #318617
monochromatic
#0B051E #200E52 #341786 #4820BA #653ADD

Accessibility & contrast

On white

13.02
#341786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341786
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341786#FFFFFF#000000##FFFFFF
##3417861.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341786;
/* rgb */ color: rgb(52, 23, 134);
/* oklch */ color: oklch(33.2% 0.167 284.6);
Tailwind
colors: {
  custom: {
    50: '#7759aa',
    500: '#341786',
    950: '#000000',
  },
}
SCSS
$custom: #341786;
$custom-light: #7759aa;
$custom-dark: #000000;
JSON
{
  "hex": "#341786",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 255.676,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3324,
    "c": 0.16748,
    "h": 284.6
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#341786
secondary
#9ABA3F
accent
#ED3ABF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341786

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

Preview Lab → · Contrast checker → · Palette generator →

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