#341A96#341A96

#341A96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.184 H 281.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#341A96
RGBrgb(52, 26, 150)
HSLhsl(253, 70%, 35%)
HSVhsv(253, 83%, 59%)
CMYKcmyk(65.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.55, 46.26, -62.47)
CIE-LCHlch(22.55, 77.73, 306.52°)
OKLaboklab(35.33% 0.0352 -0.1803)
OKLCHoklch(35.33% 0.184 281.1)
XYZxyz(7.2889, 3.6703, 29.1726)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A96 #7C961A
analogous
#1A3E96 #341A96 #721A96
triadic
#341A96 #96341A #1A9634
tetradic
#341A96 #961A3E #7C961A #1A9672
square
#341A96 #961A3E #7C961A #1A9672
split-complementary
#341A96 #96721A #3E961A
monochromatic
#10082E #221162 #341A96 #4623CA #6A4BE0

Accessibility & contrast

On white

12.11
#341A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A96
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A96#FFFFFF#000000##FFFFFF
##341A961.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341a96;
/* rgb */ color: rgb(52, 26, 150);
/* oklch */ color: oklch(35.3% 0.184 281.1);
Tailwind
colors: {
  custom: {
    50: '#7a5cb6',
    500: '#341a96',
    950: '#000000',
  },
}
SCSS
$custom: #341a96;
$custom-light: #7a5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#341a96",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 252.581,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35325,
    "c": 0.18369,
    "h": 281.1
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#341A96
secondary
#A9C24A
accent
#ED3BC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A96

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

Preview Lab → · Contrast checker → · Palette generator →

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