#341A97#341A97

#341A97 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.185 H 280.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#341A97
RGBrgb(52, 26, 151)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 59%)
CMYKcmyk(65.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.66, 46.56, -62.90)
CIE-LCHlch(22.66, 78.26, 306.51°)
OKLaboklab(35.44% 0.0349 -0.1815)
OKLCHoklch(35.44% 0.185 280.9)
XYZxyz(7.3697, 3.7026, 29.5985)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A97 #7D971A
analogous
#1A3F97 #341A97 #731A97
triadic
#341A97 #97341A #1A9734
tetradic
#341A97 #971A3F #7D971A #1A9773
square
#341A97 #971A3F #7D971A #1A9773
split-complementary
#341A97 #97731A #3F971A
monochromatic
#10082F #221163 #341A97 #4623CB #6A4BE0

Accessibility & contrast

On white

12.06
#341A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#341A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A97
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A97#FFFFFF#000000##FFFFFF
##341A971.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341a97;
/* rgb */ color: rgb(52, 26, 151);
/* oklch */ color: oklch(35.4% 0.185 280.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cb7',
    500: '#341a97',
    950: '#000000',
  },
}
SCSS
$custom: #341a97;
$custom-light: #7a5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#341a97",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 252.48,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35436,
    "c": 0.18485,
    "h": 280.9
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#341A97
secondary
#A9C24B
accent
#ED3AC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341A97

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

Preview Lab → · Contrast checker → · Palette generator →

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