#341679#341679

#341679 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.153 H 288.0°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#341679
RGBrgb(52, 22, 121)
HSLhsl(258, 69%, 28%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(57%, 81.8%, 0%, 52.5%)
CIE-LABlab(18.73, 39.54, -50.55)
CIE-LCHlch(18.73, 64.18, 308.03°)
OKLaboklab(31.73% 0.0474 -0.1455)
OKLCHoklch(31.73% 0.153 288)
XYZxyz(5.1533, 2.6841, 18.3320)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341679 #5B7916
analogous
#162979 #341679 #651679
triadic
#341679 #793416 #167934
tetradic
#341679 #791629 #5B7916 #167965
square
#341679 #791629 #5B7916 #167965
split-complementary
#341679 #796516 #297916
monochromatic
#0B051A #1E0D45 #341679 #4A1FAD #6330D9

Accessibility & contrast

On white

13.66
#341679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341679
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341679#FFFFFF#000000##FFFFFF
##3416791.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#173347
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341679;
/* rgb */ color: rgb(52, 22, 121);
/* oklch */ color: oklch(31.7% 0.153 288.0);
Tailwind
colors: {
  custom: {
    50: '#7558a1',
    500: '#341679',
    950: '#000000',
  },
}
SCSS
$custom: #341679;
$custom-light: #7558a1;
$custom-dark: #000000;
JSON
{
  "hex": "#341679",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 258.182,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.153,
    "h": 288
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#341679
secondary
#8CAE3D
accent
#EC3CB7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #341679

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

Preview Lab → · Contrast checker → · Palette generator →

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