#341B79#341B79

#341B79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.148 H 287.1°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#341B79
RGBrgb(52, 27, 121)
HSLhsl(256, 64%, 29%)
HSVhsv(256, 78%, 47%)
CMYKcmyk(57%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.61, 37.01, -49.10)
CIE-LCHlch(19.61, 61.49, 307.00°)
OKLaboklab(32.35% 0.0435 -0.1413)
OKLCHoklch(32.35% 0.148 287.1)
XYZxyz(5.2583, 2.8941, 18.3670)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B79 #60791B
analogous
#1B3179 #341B79 #631B79
triadic
#341B79 #79341B #1B7934
tetradic
#341B79 #791B31 #60791B #1B7963
square
#341B79 #791B31 #60791B #1B7963
split-complementary
#341B79 #79631B #31791B
monochromatic
#0B0619 #1E1047 #341B79 #4A26AB #643BD3

Accessibility & contrast

On white

13.30
#341B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B79
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B79#FFFFFF#000000##FFFFFF
##341B791.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#163549
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341b79;
/* rgb */ color: rgb(52, 27, 121);
/* oklch */ color: oklch(32.4% 0.148 287.1);
Tailwind
colors: {
  custom: {
    50: '#745aa1',
    500: '#341b79',
    950: '#000000',
  },
}
SCSS
$custom: #341b79;
$custom-light: #745aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#341b79",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 255.957,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32352,
    "c": 0.14783,
    "h": 287.1
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#341B79
secondary
#91AD43
accent
#E741BB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B79

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

Preview Lab → · Contrast checker → · Palette generator →

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