#341BA7#341BA7

#341BA7 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.3% C 0.203 H 278.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#341BA7
RGBrgb(52, 27, 167)
HSLhsl(251, 72%, 38%)
HSVhsv(251, 84%, 65%)
CMYKcmyk(68.9%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.65, 50.82, -69.38)
CIE-LCHlch(24.65, 86.00, 306.22°)
OKLaboklab(37.34% 0.0292 -0.2004)
OKLCHoklch(37.34% 0.203 278.3)
XYZxyz(8.7809, 4.3032, 36.9196)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341BA7 #8EA71B
analogous
#1B48A7 #341BA7 #7A1BA7
triadic
#341BA7 #A7341B #1BA734
tetradic
#341BA7 #A71B48 #8EA71B #1BA77A
square
#341BA7 #A71B48 #8EA71B #1BA77A
split-complementary
#341BA7 #A77A1B #48A71B
monochromatic
#130A3E #241272 #341BA7 #4424DC #7158E4

Accessibility & contrast

On white

11.29
#341BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#341BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341BA7
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341BA7#FFFFFF#000000##FFFFFF
##341BA71.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #341ba7;
/* rgb */ color: rgb(52, 27, 167);
/* oklch */ color: oklch(37.3% 0.203 278.3);
Tailwind
colors: {
  custom: {
    50: '#7d5dc3',
    500: '#341ba7',
    950: '#000000',
  },
}
SCSS
$custom: #341ba7;
$custom-light: #7d5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#341ba7",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 250.714,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.2025,
    "h": 278.3
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#341BA7
secondary
#B3C856
accent
#EF39CE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #341BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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