#341A79#341A79

#341A79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.149 H 287.3°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#341A79
RGBrgb(52, 26, 121)
HSLhsl(256, 65%, 29%)
HSVhsv(256, 79%, 47%)
CMYKcmyk(57%, 78.5%, 0%, 52.5%)
CIE-LABlab(19.43, 37.53, -49.41)
CIE-LCHlch(19.43, 62.05, 307.22°)
OKLaboklab(32.22% 0.0443 -0.1422)
OKLCHoklch(32.22% 0.149 287.3)
XYZxyz(5.2357, 2.8491, 18.3595)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A79 #5F791A
analogous
#1A3079 #341A79 #641A79
triadic
#341A79 #79341A #1A7934
tetradic
#341A79 #791A30 #5F791A #1A7964
square
#341A79 #791A30 #5F791A #1A7964
split-complementary
#341A79 #79641A #30791A
monochromatic
#0B0519 #1E0F47 #341A79 #4A25AB #6439D4

Accessibility & contrast

On white

13.38
#341A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A79
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A79#FFFFFF#000000##FFFFFF
##341A791.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#163548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341a79;
/* rgb */ color: rgb(52, 26, 121);
/* oklch */ color: oklch(32.2% 0.149 287.3);
Tailwind
colors: {
  custom: {
    50: '#745aa1',
    500: '#341a79',
    950: '#000000',
  },
}
SCSS
$custom: #341a79;
$custom-light: #745aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#341a79",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 256.421,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32222,
    "c": 0.14891,
    "h": 287.3
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#341A79
secondary
#90AD41
accent
#E840BA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341A79

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

Preview Lab → · Contrast checker → · Palette generator →

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