#341BA1#341BA1

#341BA1 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.196 H 279.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#341BA1
RGBrgb(52, 27, 161)
HSLhsl(251, 71%, 37%)
HSVhsv(251, 83%, 63%)
CMYKcmyk(67.7%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.95, 49.06, -66.89)
CIE-LCHlch(23.95, 82.95, 306.26°)
OKLaboklab(36.66% 0.0312 -0.1931)
OKLCHoklch(36.66% 0.196 279.2)
XYZxyz(8.2391, 4.0864, 34.0659)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341BA1 #88A11B
analogous
#1B45A1 #341BA1 #771BA1
triadic
#341BA1 #A1341B #1BA134
tetradic
#341BA1 #A11B45 #88A11B #1BA177
square
#341BA1 #A11B45 #88A11B #1BA177
split-complementary
#341BA1 #A1771B #45A11B
monochromatic
#120938 #23126D #341BA1 #4524D5 #6F54E2

Accessibility & contrast

On white

11.55
#341BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#341BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341BA1
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341BA1#FFFFFF#000000##FFFFFF
##341BA11.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #341ba1;
/* rgb */ color: rgb(52, 27, 161);
/* oklch */ color: oklch(36.7% 0.196 279.2);
Tailwind
colors: {
  custom: {
    50: '#7c5dbe',
    500: '#341ba1',
    950: '#000000',
  },
}
SCSS
$custom: #341ba1;
$custom-light: #7c5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#341ba1",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 251.194,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36662,
    "c": 0.19564,
    "h": 279.2
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#341BA1
secondary
#B0C552
accent
#EE3ACC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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