#341CA7#341CA7

#341CA7 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.4% C 0.202 H 278.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#341CA7
RGBrgb(52, 28, 167)
HSLhsl(250, 71%, 38%)
HSVhsv(250, 83%, 65%)
CMYKcmyk(68.9%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.80, 50.39, -69.14)
CIE-LCHlch(24.80, 85.55, 306.09°)
OKLaboklab(37.44% 0.0288 -0.1997)
OKLCHoklch(37.44% 0.202 278.2)
XYZxyz(8.8042, 4.3498, 36.9273)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341CA7 #8FA71C
analogous
#1C49A7 #341CA7 #791CA7
triadic
#341CA7 #A7341C #1CA734
tetradic
#341CA7 #A71C49 #8FA71C #1CA779
square
#341CA7 #A71C49 #8FA71C #1CA779
split-complementary
#341CA7 #A7791C #49A71C
monochromatic
#130A3E #241373 #341CA7 #4526DB #725AE3

Accessibility & contrast

On white

11.23
#341CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#341CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341CA7
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341CA7#FFFFFF#000000##FFFFFF
##341CA71.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.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: #341ca7;
/* rgb */ color: rgb(52, 28, 167);
/* oklch */ color: oklch(37.4% 0.202 278.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ec3',
    500: '#341ca7',
    950: '#000000',
  },
}
SCSS
$custom: #341ca7;
$custom-light: #7d5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#341ca7",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 250.36,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37442,
    "c": 0.20176,
    "h": 278.2
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#341CA7
secondary
#B4C758
accent
#EE3ACF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #341CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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