#341AA7#341AA7

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

Color values

HEX#341AA7
RGBrgb(52, 26, 167)
HSLhsl(251, 73%, 38%)
HSVhsv(251, 84%, 65%)
CMYKcmyk(68.9%, 84.4%, 0%, 34.5%)
CIE-LABlab(24.51, 51.24, -69.61)
CIE-LCHlch(24.51, 86.44, 306.35°)
OKLaboklab(37.24% 0.0296 -0.201)
OKLCHoklch(37.24% 0.203 278.4)
XYZxyz(8.7584, 4.2581, 36.9121)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341AA7 #8DA71A
analogous
#1A46A7 #341AA7 #7A1AA7
triadic
#341AA7 #A7341A #1AA734
tetradic
#341AA7 #A71A46 #8DA71A #1AA77A
square
#341AA7 #A71A46 #8DA71A #1AA77A
split-complementary
#341AA7 #A77A1A #46A71A
monochromatic
#130A3D #241272 #341AA7 #4422DC #7157E5

Accessibility & contrast

On white

11.34
#341AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#341AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341AA7
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341AA7#FFFFFF#000000##FFFFFF
##341AA71.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #341aa7;
/* rgb */ color: rgb(52, 26, 167);
/* oklch */ color: oklch(37.2% 0.203 278.4);
Tailwind
colors: {
  custom: {
    50: '#7d5dc3',
    500: '#341aa7',
    950: '#000000',
  },
}
SCSS
$custom: #341aa7;
$custom-light: #7d5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#341aa7",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 251.064,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37244,
    "c": 0.20322,
    "h": 278.4
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#341AA7
secondary
#B3C855
accent
#F038CE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #341AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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