#341D86#341D86

#341D86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.162 H 283.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#341D86
RGBrgb(52, 29, 134)
HSLhsl(253, 64%, 32%)
HSVhsv(253, 78%, 53%)
CMYKcmyk(61.2%, 78.4%, 0%, 47.5%)
CIE-LABlab(21.32, 39.96, -54.54)
CIE-LCHlch(21.32, 67.61, 306.23°)
OKLaboklab(33.95% 0.0383 -0.1572)
OKLCHoklch(33.95% 0.162 283.7)
XYZxyz(6.1573, 3.3296, 22.8679)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D86 #6F861D
analogous
#1D3B86 #341D86 #691D86
triadic
#341D86 #86341D #1D8634
tetradic
#341D86 #861D3B #6F861D #1D8669
square
#341D86 #861D3B #6F861D #1D8669
split-complementary
#341D86 #86691D #3B861D
monochromatic
#0D0721 #201254 #341D86 #4828B8 #6646D7

Accessibility & contrast

On white

12.61
#341D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D86
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D86#FFFFFF#000000##FFFFFF
##341D861.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341d86;
/* rgb */ color: rgb(52, 29, 134);
/* oklch */ color: oklch(34.0% 0.162 283.7);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#341d86',
    950: '#000000',
  },
}
SCSS
$custom: #341d86;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#341d86",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 253.143,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33951,
    "c": 0.16181,
    "h": 283.7
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#341D86
secondary
#A0B946
accent
#E740C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341D86

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

Preview Lab → · Contrast checker → · Palette generator →

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