#341C86#341C86

#341C86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.163 H 283.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#341C86
RGBrgb(52, 28, 134)
HSLhsl(254, 65%, 32%)
HSVhsv(254, 79%, 53%)
CMYKcmyk(61.2%, 79.1%, 0%, 47.5%)
CIE-LABlab(21.14, 40.47, -54.84)
CIE-LCHlch(21.14, 68.16, 306.43°)
OKLaboklab(33.82% 0.039 -0.1581)
OKLCHoklch(33.82% 0.163 283.9)
XYZxyz(6.1332, 3.2814, 22.8598)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C86 #6E861C
analogous
#1C3986 #341C86 #691C86
triadic
#341C86 #86341C #1C8634
tetradic
#341C86 #861C39 #6E861C #1C8669
square
#341C86 #861C39 #6E861C #1C8669
split-complementary
#341C86 #86691C #39861C
monochromatic
#0D0721 #201153 #341C86 #4827B9 #6644D8

Accessibility & contrast

On white

12.68
#341C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#341C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C86
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C86#FFFFFF#000000##FFFFFF
##341C861.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341c86;
/* rgb */ color: rgb(52, 28, 134);
/* oklch */ color: oklch(33.8% 0.163 283.9);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#341c86',
    950: '#000000',
  },
}
SCSS
$custom: #341c86;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#341c86",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 253.585,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33824,
    "c": 0.16281,
    "h": 283.9
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#341C86
secondary
#9FB945
accent
#E83FC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C86

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

Preview Lab → · Contrast checker → · Palette generator →

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