#341879#341879

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

Color values

HEX#341879
RGBrgb(52, 24, 121)
HSLhsl(257, 67%, 28%)
HSVhsv(257, 80%, 47%)
CMYKcmyk(57%, 80.2%, 0%, 52.5%)
CIE-LABlab(19.07, 38.56, -50.00)
CIE-LCHlch(19.07, 63.14, 307.64°)
OKLaboklab(31.97% 0.0459 -0.1439)
OKLCHoklch(31.97% 0.151 287.7)
XYZxyz(5.1930, 2.7635, 18.3452)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341879 #5D7918
analogous
#182C79 #341879 #641879
triadic
#341879 #793418 #187934
tetradic
#341879 #79182C #5D7918 #187964
square
#341879 #79182C #5D7918 #187964
split-complementary
#341879 #796418 #2C7918
monochromatic
#0B051A #1E0E46 #341879 #4A22AC #6335D7

Accessibility & contrast

On white

13.52
#341879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#341879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341879
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341879#FFFFFF#000000##FFFFFF
##3418791.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341879;
/* rgb */ color: rgb(52, 24, 121);
/* oklch */ color: oklch(32.0% 0.151 287.7);
Tailwind
colors: {
  custom: {
    50: '#7459a1',
    500: '#341879',
    950: '#000000',
  },
}
SCSS
$custom: #341879;
$custom-light: #7459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#341879",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 257.32,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31971,
    "c": 0.15101,
    "h": 287.7
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#341879
secondary
#8EAE3F
accent
#EA3EB8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341879

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

Preview Lab → · Contrast checker → · Palette generator →

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