#341581#341581

#341581 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.163 H 286.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#341581
RGBrgb(52, 21, 129)
HSLhsl(257, 72%, 29%)
HSVhsv(257, 84%, 51%)
CMYKcmyk(59.7%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.44, 42.34, -54.49)
CIE-LCHlch(19.44, 69.00, 307.85°)
OKLaboklab(32.48% 0.0453 -0.1569)
OKLCHoklch(32.48% 0.163 286.1)
XYZxyz(5.6456, 2.8510, 21.0174)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341581 #628115
analogous
#152C81 #341581 #6A1581
triadic
#341581 #813415 #158134
tetradic
#341581 #81152C #628115 #15816A
square
#341581 #81152C #628115 #15816A
split-complementary
#341581 #816A15 #2C8115
monochromatic
#0B041A #1F0C4C #341581 #491EB6 #6433DE

Accessibility & contrast

On white

13.37
#341581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341581
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341581#FFFFFF#000000##FFFFFF
##3415811.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#0B364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341581;
/* rgb */ color: rgb(52, 21, 129);
/* oklch */ color: oklch(32.5% 0.163 286.1);
Tailwind
colors: {
  custom: {
    50: '#7658a7',
    500: '#341581',
    950: '#000000',
  },
}
SCSS
$custom: #341581;
$custom-light: #7658a7;
$custom-dark: #000000;
JSON
{
  "hex": "#341581",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 257.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.16335,
    "h": 286.1
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#341581
secondary
#93B63C
accent
#EF39BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #341581

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

Preview Lab → · Contrast checker → · Palette generator →

#341581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva