#341A95#341A95

#341A95 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.183 H 281.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#341A95
RGBrgb(52, 26, 149)
HSLhsl(253, 70%, 34%)
HSVhsv(253, 83%, 58%)
CMYKcmyk(65.1%, 82.6%, 0%, 41.6%)
CIE-LABlab(22.44, 45.97, -62.04)
CIE-LCHlch(22.44, 77.21, 306.54°)
OKLaboklab(35.21% 0.0356 -0.179)
OKLCHoklch(35.21% 0.183 281.2)
XYZxyz(7.2087, 3.6382, 28.7503)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A95 #7B951A
analogous
#1A3E95 #341A95 #721A95
triadic
#341A95 #95341A #1A9534
tetradic
#341A95 #951A3E #7B951A #1A9572
square
#341A95 #951A3E #7B951A #1A9572
split-complementary
#341A95 #95721A #3E951A
monochromatic
#10082D #221161 #341A95 #4623C9 #6A4ADF

Accessibility & contrast

On white

12.15
#341A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A95
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A95#FFFFFF#000000##FFFFFF
##341A951.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341a95;
/* rgb */ color: rgb(52, 26, 149);
/* oklch */ color: oklch(35.2% 0.183 281.2);
Tailwind
colors: {
  custom: {
    50: '#7a5cb5',
    500: '#341a95',
    950: '#000000',
  },
}
SCSS
$custom: #341a95;
$custom-light: #7a5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341a95",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 252.683,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35214,
    "c": 0.18252,
    "h": 281.2
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#341A95
secondary
#A8C14A
accent
#ED3BC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A95

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

Preview Lab → · Contrast checker → · Palette generator →

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