#341794#341794

#341794 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.184 H 281.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#341794
RGBrgb(52, 23, 148)
HSLhsl(254, 73%, 34%)
HSVhsv(254, 84%, 58%)
CMYKcmyk(64.9%, 84.5%, 0%, 42%)
CIE-LABlab(21.87, 46.99, -62.35)
CIE-LCHlch(21.87, 78.08, 307.00°)
OKLaboklab(34.79% 0.0374 -0.1799)
OKLCHoklch(34.79% 0.184 281.7)
XYZxyz(7.0662, 3.4804, 28.3107)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341794 #779417
analogous
#173894 #341794 #721794
triadic
#341794 #943417 #179434
tetradic
#341794 #941738 #779417 #179472
square
#341794 #941738 #779417 #179472
split-complementary
#341794 #947217 #389417
monochromatic
#0F072A #210F5F #341794 #471FC9 #6844E2

Accessibility & contrast

On white

12.38
#341794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341794
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341794#FFFFFF#000000##FFFFFF
##3417941.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341794;
/* rgb */ color: rgb(52, 23, 148);
/* oklch */ color: oklch(34.8% 0.184 281.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ab5',
    500: '#341794',
    950: '#000000',
  },
}
SCSS
$custom: #341794;
$custom-light: #7a5ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#341794",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 253.92,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34792,
    "c": 0.18373,
    "h": 281.7
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#341794
secondary
#A5C344
accent
#F038C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341794

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

Preview Lab → · Contrast checker → · Palette generator →

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