#341979#341979

#341979 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.150 H 287.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#341979
RGBrgb(52, 25, 121)
HSLhsl(257, 66%, 29%)
HSVhsv(257, 79%, 47%)
CMYKcmyk(57%, 79.3%, 0%, 52.5%)
CIE-LABlab(19.25, 38.05, -49.71)
CIE-LCHlch(19.25, 62.60, 307.44°)
OKLaboklab(32.1% 0.0451 -0.143)
OKLCHoklch(32.1% 0.15 287.5)
XYZxyz(5.2140, 2.8055, 18.3522)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341979 #5E7919
analogous
#192E79 #341979 #641979
triadic
#341979 #793419 #197934
tetradic
#341979 #79192E #5E7919 #197964
square
#341979 #79192E #5E7919 #197964
split-complementary
#341979 #796419 #2E7919
monochromatic
#0B0519 #1E0F46 #341979 #4A23AC #6337D6

Accessibility & contrast

On white

13.45
#341979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341979
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341979#FFFFFF#000000##FFFFFF
##3419791.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#163448
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341979;
/* rgb */ color: rgb(52, 25, 121);
/* oklch */ color: oklch(32.1% 0.150 287.5);
Tailwind
colors: {
  custom: {
    50: '#7459a1',
    500: '#341979',
    950: '#000000',
  },
}
SCSS
$custom: #341979;
$custom-light: #7459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#341979",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 256.875,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32095,
    "c": 0.14997,
    "h": 287.5
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#341979
secondary
#8FAE40
accent
#E93FB9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341979

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

Preview Lab → · Contrast checker → · Palette generator →

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