#341B78#341B78

#341B78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.147 H 287.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#341B78
RGBrgb(52, 27, 120)
HSLhsl(256, 63%, 29%)
HSVhsv(256, 78%, 47%)
CMYKcmyk(56.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.51, 36.70, -48.63)
CIE-LCHlch(19.51, 60.92, 307.04°)
OKLaboklab(32.25% 0.0438 -0.1399)
OKLCHoklch(32.25% 0.147 287.4)
XYZxyz(5.1973, 2.8697, 18.0457)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B78 #5F781B
analogous
#1B3178 #341B78 #631B78
triadic
#341B78 #78341B #1B7834
tetradic
#341B78 #781B31 #5F781B #1B7863
square
#341B78 #781B31 #5F781B #1B7863
split-complementary
#341B78 #78631B #31781B
monochromatic
#0B0619 #1E1046 #341B78 #4A26AA #643BD3

Accessibility & contrast

On white

13.34
#341B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B78
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B78#FFFFFF#000000##FFFFFF
##341B781.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#173548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341b78;
/* rgb */ color: rgb(52, 27, 120);
/* oklch */ color: oklch(32.3% 0.147 287.4);
Tailwind
colors: {
  custom: {
    50: '#745aa0',
    500: '#341b78',
    950: '#000000',
  },
}
SCSS
$custom: #341b78;
$custom-light: #745aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#341b78",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 256.129,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.14658,
    "h": 287.4
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#341B78
secondary
#90AC43
accent
#E641BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341B78

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

Preview Lab → · Contrast checker → · Palette generator →

#341B78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva