#341CA4#341CA4

#341CA4 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.198 H 278.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#341CA4
RGBrgb(52, 28, 164)
HSLhsl(251, 71%, 38%)
HSVhsv(251, 83%, 64%)
CMYKcmyk(68.3%, 82.9%, 0%, 35.7%)
CIE-LABlab(24.45, 49.51, -67.89)
CIE-LCHlch(24.45, 84.02, 306.10°)
OKLaboklab(37.1% 0.0298 -0.1961)
OKLCHoklch(37.1% 0.198 278.6)
XYZxyz(8.5301, 4.2402, 35.4837)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341CA4 #8CA41C
analogous
#1C48A4 #341CA4 #781CA4
triadic
#341CA4 #A4341C #1CA434
tetradic
#341CA4 #A41C48 #8CA41C #1CA478
square
#341CA4 #A41C48 #8CA41C #1CA478
split-complementary
#341CA4 #A4781C #48A41C
monochromatic
#130A3B #231370 #341CA4 #4525D8 #7058E2

Accessibility & contrast

On white

11.36
#341CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341CA4
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341CA4#FFFFFF#000000##FFFFFF
##341CA41.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #341ca4;
/* rgb */ color: rgb(52, 28, 164);
/* oklch */ color: oklch(37.1% 0.198 278.6);
Tailwind
colors: {
  custom: {
    50: '#7d5ec0',
    500: '#341ca4',
    950: '#000000',
  },
}
SCSS
$custom: #341ca4;
$custom-light: #7d5ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#341ca4",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 164
  },
  "hsl": {
    "h": 250.588,
    "s": 70.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.19832,
    "h": 278.6
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#341CA4
secondary
#B2C656
accent
#EE3ACE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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