#341778#341778

#341778 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.151 H 288.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#341778
RGBrgb(52, 23, 120)
HSLhsl(258, 68%, 28%)
HSVhsv(258, 81%, 47%)
CMYKcmyk(56.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(18.79, 38.76, -49.81)
CIE-LCHlch(18.79, 63.11, 307.89°)
OKLaboklab(31.75% 0.047 -0.1433)
OKLCHoklch(31.75% 0.151 288.1)
XYZxyz(5.1117, 2.6987, 18.0172)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341778 #5B7817
analogous
#172A78 #341778 #641778
triadic
#341778 #783417 #177834
tetradic
#341778 #78172A #5B7817 #177864
square
#341778 #78172A #5B7817 #177864
split-complementary
#341778 #786417 #2A7817
monochromatic
#0B051A #1E0D45 #341778 #4A21AB #6332D8

Accessibility & contrast

On white

13.64
#341778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341778
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341778#FFFFFF#000000##FFFFFF
##3417781.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341778;
/* rgb */ color: rgb(52, 23, 120);
/* oklch */ color: oklch(31.7% 0.151 288.1);
Tailwind
colors: {
  custom: {
    50: '#7458a0',
    500: '#341778',
    950: '#000000',
  },
}
SCSS
$custom: #341778;
$custom-light: #7458a0;
$custom-dark: #000000;
JSON
{
  "hex": "#341778",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 257.938,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31746,
    "c": 0.15082,
    "h": 288.1
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#341778
secondary
#8CAD3E
accent
#EB3DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #341778

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

Preview Lab → · Contrast checker → · Palette generator →

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