#341A91#341A91

#341A91 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.178 H 282.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#341A91
RGBrgb(52, 26, 145)
HSLhsl(253, 70%, 34%)
HSVhsv(253, 82%, 57%)
CMYKcmyk(64.1%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.99, 44.78, -60.30)
CIE-LCHlch(21.99, 75.11, 306.60°)
OKLaboklab(34.77% 0.0369 -0.174)
OKLCHoklch(34.77% 0.178 282)
XYZxyz(6.8948, 3.5127, 27.0973)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A91 #77911A
analogous
#1A3B91 #341A91 #6F1A91
triadic
#341A91 #91341A #1A9134
tetradic
#341A91 #911A3B #77911A #1A916F
square
#341A91 #911A3B #77911A #1A916F
split-complementary
#341A91 #916F1A #3B911A
monochromatic
#0F0729 #21115D #341A91 #4723C5 #6847DE

Accessibility & contrast

On white

12.33
#341A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A91
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A91#FFFFFF#000000##FFFFFF
##341A911.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341a91;
/* rgb */ color: rgb(52, 26, 145);
/* oklch */ color: oklch(34.8% 0.178 282.0);
Tailwind
colors: {
  custom: {
    50: '#795bb2',
    500: '#341a91',
    950: '#000000',
  },
}
SCSS
$custom: #341a91;
$custom-light: #795bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#341a91",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 253.109,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.17783,
    "h": 282
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#341A91
secondary
#A5C047
accent
#EC3BC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A91

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

Preview Lab → · Contrast checker → · Palette generator →

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