#341D82#341D82

#341D82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 284.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#341D82
RGBrgb(52, 29, 130)
HSLhsl(254, 64%, 31%)
HSVhsv(254, 78%, 51%)
CMYKcmyk(60%, 77.7%, 0%, 49%)
CIE-LABlab(20.90, 38.72, -52.70)
CIE-LCHlch(20.90, 65.40, 306.30°)
OKLaboklab(33.54% 0.0395 -0.1518)
OKLCHoklch(33.54% 0.157 284.6)
XYZxyz(5.8836, 3.2201, 21.4263)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D82 #6B821D
analogous
#1D3882 #341D82 #661D82
triadic
#341D82 #82341D #1D8234
tetradic
#341D82 #821D38 #6B821D #1D8266
square
#341D82 #821D38 #6B821D #1D8266
split-complementary
#341D82 #82661D #38821D
monochromatic
#0C071E #201250 #341D82 #4828B4 #6544D5

Accessibility & contrast

On white

12.77
#341D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D82
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D82#FFFFFF#000000##FFFFFF
##341D821.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#073A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341d82;
/* rgb */ color: rgb(52, 29, 130);
/* oklch */ color: oklch(33.5% 0.157 284.6);
Tailwind
colors: {
  custom: {
    50: '#765ca7',
    500: '#341d82',
    950: '#000000',
  },
}
SCSS
$custom: #341d82;
$custom-light: #765ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#341d82",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 253.663,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33536,
    "c": 0.15686,
    "h": 284.6
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#341D82
secondary
#9CB546
accent
#E741C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341D82

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

Preview Lab → · Contrast checker → · Palette generator →

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