#341793#341793

#341793 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.183 H 281.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#341793
RGBrgb(52, 23, 147)
HSLhsl(254, 73%, 33%)
HSVhsv(254, 84%, 58%)
CMYKcmyk(64.6%, 84.4%, 0%, 42.4%)
CIE-LABlab(21.76, 46.70, -61.92)
CIE-LCHlch(21.76, 77.56, 307.02°)
OKLaboklab(34.68% 0.0377 -0.1786)
OKLCHoklch(34.68% 0.183 281.9)
XYZxyz(6.9874, 3.4489, 27.8956)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341793 #769317
analogous
#173893 #341793 #721793
triadic
#341793 #933417 #179334
tetradic
#341793 #931738 #769317 #179372
square
#341793 #931738 #769317 #179372
split-complementary
#341793 #937217 #389317
monochromatic
#0F0629 #210F5E #341793 #471FC8 #6843E2

Accessibility & contrast

On white

12.43
#341793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341793
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341793#FFFFFF#000000##FFFFFF
##3417931.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341793;
/* rgb */ color: rgb(52, 23, 147);
/* oklch */ color: oklch(34.7% 0.183 281.9);
Tailwind
colors: {
  custom: {
    50: '#795ab4',
    500: '#341793',
    950: '#000000',
  },
}
SCSS
$custom: #341793;
$custom-light: #795ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#341793",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 254.032,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.18259,
    "h": 281.9
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341793

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

Preview Lab → · Contrast checker → · Palette generator →

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