#341C78#341C78

#341C78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.145 H 287.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#341C78
RGBrgb(52, 28, 120)
HSLhsl(256, 62%, 29%)
HSVhsv(256, 77%, 47%)
CMYKcmyk(56.7%, 76.7%, 0%, 52.9%)
CIE-LABlab(19.71, 36.16, -48.31)
CIE-LCHlch(19.71, 60.34, 306.81°)
OKLaboklab(32.39% 0.0429 -0.139)
OKLCHoklch(32.39% 0.145 287.2)
XYZxyz(5.2206, 2.9164, 18.0535)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C78 #60781C
analogous
#1C3278 #341C78 #621C78
triadic
#341C78 #78341C #1C7834
tetradic
#341C78 #781C32 #60781C #1C7862
square
#341C78 #781C32 #60781C #1C7862
split-complementary
#341C78 #78621C #32781C
monochromatic
#0B0619 #1E1046 #341C78 #4A28AA #643DD2

Accessibility & contrast

On white

13.26
#341C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C78
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C78#FFFFFF#000000##FFFFFF
##341C781.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#173548
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341c78;
/* rgb */ color: rgb(52, 28, 120);
/* oklch */ color: oklch(32.4% 0.145 287.2);
Tailwind
colors: {
  custom: {
    50: '#745ba0',
    500: '#341c78',
    950: '#000000',
  },
}
SCSS
$custom: #341c78;
$custom-light: #745ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#341c78",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 255.652,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32386,
    "c": 0.14546,
    "h": 287.2
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#341C78
secondary
#91AC44
accent
#E543BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341C78

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

Preview Lab → · Contrast checker → · Palette generator →

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