#341C81#341C81

#341C81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.157 H 285.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#341C81
RGBrgb(52, 28, 129)
HSLhsl(254, 64%, 31%)
HSVhsv(254, 78%, 51%)
CMYKcmyk(59.7%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.62, 38.94, -52.54)
CIE-LCHlch(20.62, 65.40, 306.54°)
OKLaboklab(33.3% 0.0405 -0.1514)
OKLCHoklch(33.3% 0.157 285)
XYZxyz(5.7927, 3.1452, 21.0665)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C81 #69811C
analogous
#1C3781 #341C81 #661C81
triadic
#341C81 #81341C #1C8134
tetradic
#341C81 #811C37 #69811C #1C8166
square
#341C81 #811C37 #69811C #1C8166
split-complementary
#341C81 #81661C #37811C
monochromatic
#0B061C #20114F #341C81 #4827B3 #6542D6

Accessibility & contrast

On white

12.89
#341C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C81
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C81#FFFFFF#000000##FFFFFF
##341C811.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#0A394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341c81;
/* rgb */ color: rgb(52, 28, 129);
/* oklch */ color: oklch(33.3% 0.157 285.0);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#341c81',
    950: '#000000',
  },
}
SCSS
$custom: #341c81;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#341c81",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 254.257,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33303,
    "c": 0.15667,
    "h": 285
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#341C81
secondary
#9AB444
accent
#E740C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341C81

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

Preview Lab → · Contrast checker → · Palette generator →

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