#341AA1#341AA1

#341AA1 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.196 H 279.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#341AA1
RGBrgb(52, 26, 161)
HSLhsl(252, 72%, 37%)
HSVhsv(252, 84%, 63%)
CMYKcmyk(67.7%, 83.9%, 0%, 36.9%)
CIE-LABlab(23.81, 49.50, -67.13)
CIE-LCHlch(23.81, 83.40, 306.40°)
OKLaboklab(36.56% 0.0316 -0.1938)
OKLCHoklch(36.56% 0.196 279.3)
XYZxyz(8.2165, 4.0414, 34.0584)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341AA1 #87A11A
analogous
#1A43A1 #341AA1 #781AA1
triadic
#341AA1 #A1341A #1AA134
tetradic
#341AA1 #A11A43 #87A11A #1AA178
square
#341AA1 #A11A43 #87A11A #1AA178
split-complementary
#341AA1 #A1781A #43A11A
monochromatic
#120938 #23116C #341AA1 #4523D6 #6E52E3

Accessibility & contrast

On white

11.61
#341AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#341AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341AA1
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341AA1#FFFFFF#000000##FFFFFF
##341AA11.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #341aa1;
/* rgb */ color: rgb(52, 26, 161);
/* oklch */ color: oklch(36.6% 0.196 279.3);
Tailwind
colors: {
  custom: {
    50: '#7c5cbe',
    500: '#341aa1',
    950: '#000000',
  },
}
SCSS
$custom: #341aa1;
$custom-light: #7c5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#341aa1",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 251.556,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3656,
    "c": 0.19639,
    "h": 279.3
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#341AA1
secondary
#AFC651
accent
#EF39CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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