#341878#341878

#341878 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.150 H 288.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#341878
RGBrgb(52, 24, 120)
HSLhsl(258, 67%, 28%)
HSVhsv(258, 80%, 47%)
CMYKcmyk(56.7%, 80%, 0%, 52.9%)
CIE-LABlab(18.97, 38.26, -49.53)
CIE-LCHlch(18.97, 62.58, 307.69°)
OKLaboklab(31.87% 0.0462 -0.1425)
OKLCHoklch(31.87% 0.15 288)
XYZxyz(5.1320, 2.7391, 18.0239)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341878 #5C7818
analogous
#182C78 #341878 #641878
triadic
#341878 #783418 #187834
tetradic
#341878 #78182C #5C7818 #187864
square
#341878 #78182C #5C7818 #187864
split-complementary
#341878 #786418 #2C7818
monochromatic
#0B051A #1E0E45 #341878 #4A22AB #6334D6

Accessibility & contrast

On white

13.57
#341878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341878
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341878#FFFFFF#000000##FFFFFF
##3418781.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#173347
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341878;
/* rgb */ color: rgb(52, 24, 120);
/* oklch */ color: oklch(31.9% 0.150 288.0);
Tailwind
colors: {
  custom: {
    50: '#7459a0',
    500: '#341878',
    950: '#000000',
  },
}
SCSS
$custom: #341878;
$custom-light: #7459a0;
$custom-dark: #000000;
JSON
{
  "hex": "#341878",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 257.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.14979,
    "h": 288
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#341878
secondary
#8DAD3F
accent
#EA3EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341878

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

Preview Lab → · Contrast checker → · Palette generator →

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