#341784#341784

#341784 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.165 H 285.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#341784
RGBrgb(52, 23, 132)
HSLhsl(256, 70%, 30%)
HSVhsv(256, 83%, 52%)
CMYKcmyk(60.6%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.08, 42.31, -55.33)
CIE-LCHlch(20.08, 69.65, 307.41°)
OKLaboklab(33.02% 0.043 -0.1594)
OKLCHoklch(33.02% 0.165 285.1)
XYZxyz(5.8862, 3.0084, 22.0958)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341784 #678417
analogous
#173184 #341784 #6A1784
triadic
#341784 #843417 #178434
tetradic
#341784 #841731 #678417 #17846A
square
#341784 #841731 #678417 #17846A
split-complementary
#341784 #846A17 #318417
monochromatic
#0B051C #1F0E50 #341784 #4920B8 #6439DC

Accessibility & contrast

On white

13.11
#341784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341784
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341784#FFFFFF#000000##FFFFFF
##3417841.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#04384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341784;
/* rgb */ color: rgb(52, 23, 132);
/* oklch */ color: oklch(33.0% 0.165 285.1);
Tailwind
colors: {
  custom: {
    50: '#7659a9',
    500: '#341784',
    950: '#000000',
  },
}
SCSS
$custom: #341784;
$custom-light: #7659a9;
$custom-dark: #000000;
JSON
{
  "hex": "#341784",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 255.963,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33023,
    "c": 0.16512,
    "h": 285.1
  },
  "luminance": 0.03009
}

Semantic roles & 50–950 ramp

primary
#341784
secondary
#98B83F
accent
#ED3BBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341784

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

Preview Lab → · Contrast checker → · Palette generator →

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