#341684#341684

#341684 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.166 H 285.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#341684
RGBrgb(52, 22, 132)
HSLhsl(256, 71%, 30%)
HSVhsv(256, 83%, 52%)
CMYKcmyk(60.6%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.92, 42.77, -55.58)
CIE-LCHlch(19.92, 70.13, 307.58°)
OKLaboklab(32.92% 0.0436 -0.1602)
OKLCHoklch(32.92% 0.166 285.2)
XYZxyz(5.8667, 2.9695, 22.0893)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341684 #668416
analogous
#162F84 #341684 #6B1684
triadic
#341684 #843416 #168434
tetradic
#341684 #84162F #668416 #16846B
square
#341684 #84162F #668416 #16846B
split-complementary
#341684 #846B16 #2F8416
monochromatic
#0B051B #1F0D50 #341684 #491FB8 #6437DE

Accessibility & contrast

On white

13.17
#341684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341684
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341684#FFFFFF#000000##FFFFFF
##3416841.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341684;
/* rgb */ color: rgb(52, 22, 132);
/* oklch */ color: oklch(32.9% 0.166 285.2);
Tailwind
colors: {
  custom: {
    50: '#7758a9',
    500: '#341684',
    950: '#000000',
  },
}
SCSS
$custom: #341684;
$custom-light: #7758a9;
$custom-dark: #000000;
JSON
{
  "hex": "#341684",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 256.364,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.166,
    "h": 285.2
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#341684
secondary
#97B83D
accent
#EE3ABD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341684

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

Preview Lab → · Contrast checker → · Palette generator →

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