#341978#341978

#341978 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.149 H 287.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#341978
RGBrgb(52, 25, 120)
HSLhsl(257, 66%, 28%)
HSVhsv(257, 79%, 47%)
CMYKcmyk(56.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.14, 37.75, -49.23)
CIE-LCHlch(19.14, 62.04, 307.48°)
OKLaboklab(31.99% 0.0454 -0.1416)
OKLCHoklch(31.99% 0.149 287.8)
XYZxyz(5.1530, 2.7811, 18.0309)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341978 #5D7819
analogous
#192D78 #341978 #631978
triadic
#341978 #783419 #197834
tetradic
#341978 #78192D #5D7819 #197863
square
#341978 #78192D #5D7819 #197863
split-complementary
#341978 #786319 #2D7819
monochromatic
#0B0519 #1E0E45 #341978 #4A24AB #6336D5

Accessibility & contrast

On white

13.49
#341978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#341978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341978
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341978#FFFFFF#000000##FFFFFF
##3419781.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#173448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341978;
/* rgb */ color: rgb(52, 25, 120);
/* oklch */ color: oklch(32.0% 0.149 287.8);
Tailwind
colors: {
  custom: {
    50: '#7459a0',
    500: '#341978',
    950: '#000000',
  },
}
SCSS
$custom: #341978;
$custom-light: #7459a0;
$custom-dark: #000000;
JSON
{
  "hex": "#341978",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 257.053,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31992,
    "c": 0.14875,
    "h": 287.8
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#341978
secondary
#8EAD40
accent
#E83FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341978

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

Preview Lab → · Contrast checker → · Palette generator →

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