#341A99#341A99

#341A99 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.187 H 280.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#341A99
RGBrgb(52, 26, 153)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 60%)
CMYKcmyk(66%, 83%, 0%, 40%)
CIE-LABlab(22.89, 47.15, -63.75)
CIE-LCHlch(22.89, 79.29, 306.48°)
OKLaboklab(35.66% 0.0342 -0.184)
OKLCHoklch(35.66% 0.187 280.5)
XYZxyz(7.5335, 3.7682, 30.4611)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A99 #7F991A
analogous
#1A4099 #341A99 #731A99
triadic
#341A99 #99341A #1A9934
tetradic
#341A99 #991A40 #7F991A #1A9973
square
#341A99 #991A40 #7F991A #1A9973
split-complementary
#341A99 #99731A #40991A
monochromatic
#100830 #221165 #341A99 #4623CD #6B4DE1

Accessibility & contrast

On white

11.97
#341A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#341A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A99
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A99#FFFFFF#000000##FFFFFF
##341A991.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341a99;
/* rgb */ color: rgb(52, 26, 153);
/* oklch */ color: oklch(35.7% 0.187 280.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cb8',
    500: '#341a99',
    950: '#000000',
  },
}
SCSS
$custom: #341a99;
$custom-light: #7b5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341a99",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 252.283,
    "s": 70.95,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35659,
    "c": 0.18718,
    "h": 280.5
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#341A99
secondary
#AAC34C
accent
#EE3AC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A99

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

Preview Lab → · Contrast checker → · Palette generator →

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