#341796#341796

#341796 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.186 H 281.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#341796
RGBrgb(52, 23, 150)
HSLhsl(254, 73%, 34%)
HSVhsv(254, 85%, 59%)
CMYKcmyk(65.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(22.10, 47.57, -63.21)
CIE-LCHlch(22.10, 79.11, 306.97°)
OKLaboklab(35.02% 0.0367 -0.1824)
OKLCHoklch(35.02% 0.186 281.4)
XYZxyz(7.2259, 3.5443, 29.1516)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341796 #799617
analogous
#173A96 #341796 #741796
triadic
#341796 #963417 #179634
tetradic
#341796 #96173A #799617 #179674
square
#341796 #96173A #799617 #179674
split-complementary
#341796 #967417 #3A9617
monochromatic
#0F072C #220F61 #341796 #461FCB #6945E2

Accessibility & contrast

On white

12.29
#341796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#341796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341796
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341796#FFFFFF#000000##FFFFFF
##3417961.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#003F59
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341796;
/* rgb */ color: rgb(52, 23, 150);
/* oklch */ color: oklch(35.0% 0.186 281.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ab6',
    500: '#341796',
    950: '#000000',
  },
}
SCSS
$custom: #341796;
$custom-light: #7a5ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#341796",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 253.701,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35018,
    "c": 0.18603,
    "h": 281.4
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#341796
secondary
#A7C345
accent
#F038C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341796

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

Preview Lab → · Contrast checker → · Palette generator →

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