#341B86#341B86

#341B86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.164 H 284.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#341B86
RGBrgb(52, 27, 134)
HSLhsl(254, 66%, 32%)
HSVhsv(254, 80%, 53%)
CMYKcmyk(61.2%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.96, 40.98, -55.13)
CIE-LCHlch(20.96, 68.69, 306.63°)
OKLaboklab(33.7% 0.0397 -0.1589)
OKLCHoklch(33.7% 0.164 284)
XYZxyz(6.1099, 3.2348, 22.8520)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B86 #6D861B
analogous
#1B3786 #341B86 #6A1B86
triadic
#341B86 #86341B #1B8634
tetradic
#341B86 #861B37 #6D861B #1B866A
square
#341B86 #861B37 #6D861B #1B866A
split-complementary
#341B86 #866A1B #37861B
monochromatic
#0C0620 #201153 #341B86 #4825B9 #6642D9

Accessibility & contrast

On white

12.75
#341B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B86
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B86#FFFFFF#000000##FFFFFF
##341B861.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341b86;
/* rgb */ color: rgb(52, 27, 134);
/* oklch */ color: oklch(33.7% 0.164 284.0);
Tailwind
colors: {
  custom: {
    50: '#775baa',
    500: '#341b86',
    950: '#000000',
  },
}
SCSS
$custom: #341b86;
$custom-light: #775baa;
$custom-dark: #000000;
JSON
{
  "hex": "#341b86",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 254.019,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.16379,
    "h": 284
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#341B86
secondary
#9EB944
accent
#E93EC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B86

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

Preview Lab → · Contrast checker → · Palette generator →

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