#341B76#341B76

#341B76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.144 H 287.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#341B76
RGBrgb(52, 27, 118)
HSLhsl(256, 63%, 28%)
HSVhsv(256, 77%, 46%)
CMYKcmyk(55.9%, 77.1%, 0%, 53.7%)
CIE-LABlab(19.32, 36.09, -47.67)
CIE-LCHlch(19.32, 59.79, 307.12°)
OKLaboklab(32.05% 0.0443 -0.1371)
OKLCHoklch(32.05% 0.144 287.9)
XYZxyz(5.0772, 2.8217, 17.4131)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B76 #5D761B
analogous
#1B2F76 #341B76 #611B76
triadic
#341B76 #76341B #1B7634
tetradic
#341B76 #761B2F #5D761B #1B7661
square
#341B76 #761B2F #5D761B #1B7661
split-complementary
#341B76 #76611B #2F761B
monochromatic
#0B0619 #1E1044 #341B76 #4A26A8 #633AD2

Accessibility & contrast

On white

13.42
#341B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#341B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B76
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B76#FFFFFF#000000##FFFFFF
##341B761.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#193447
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341b76;
/* rgb */ color: rgb(52, 27, 118);
/* oklch */ color: oklch(32.0% 0.144 287.9);
Tailwind
colors: {
  custom: {
    50: '#745a9e',
    500: '#341b76',
    950: '#000000',
  },
}
SCSS
$custom: #341b76;
$custom-light: #745a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#341b76",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 256.484,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.14407,
    "h": 287.9
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#341B76
secondary
#8EAA42
accent
#E642B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341B76

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

Preview Lab → · Contrast checker → · Palette generator →

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