#341678#341678

#341678 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.152 H 288.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#341678
RGBrgb(52, 22, 120)
HSLhsl(258, 69%, 28%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(56.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(18.63, 39.24, -50.09)
CIE-LCHlch(18.63, 63.63, 308.08°)
OKLaboklab(31.63% 0.0477 -0.1441)
OKLCHoklch(31.63% 0.152 288.3)
XYZxyz(5.0922, 2.6597, 18.0107)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341678 #5A7816
analogous
#162978 #341678 #651678
triadic
#341678 #783416 #167834
tetradic
#341678 #781629 #5A7816 #167865
square
#341678 #781629 #5A7816 #167865
split-complementary
#341678 #786516 #297816
monochromatic
#0B051A #1E0D44 #341678 #4A1FAC #632FD9

Accessibility & contrast

On white

13.71
#341678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#341678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341678
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341678#FFFFFF#000000##FFFFFF
##3416781.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#183347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341678;
/* rgb */ color: rgb(52, 22, 120);
/* oklch */ color: oklch(31.6% 0.152 288.3);
Tailwind
colors: {
  custom: {
    50: '#7458a0',
    500: '#341678',
    950: '#000000',
  },
}
SCSS
$custom: #341678;
$custom-light: #7458a0;
$custom-dark: #000000;
JSON
{
  "hex": "#341678",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 258.367,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.15181,
    "h": 288.3
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#341678
secondary
#8BAD3C
accent
#EC3CB6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #341678

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

Preview Lab → · Contrast checker → · Palette generator →

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