#341D80#341D80

#341D80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.154 H 285.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#341D80
RGBrgb(52, 29, 128)
HSLhsl(254, 63%, 31%)
HSVhsv(254, 77%, 50%)
CMYKcmyk(59.4%, 77.3%, 0%, 49.8%)
CIE-LABlab(20.70, 38.10, -51.77)
CIE-LCHlch(20.70, 64.28, 306.35°)
OKLaboklab(33.33% 0.04 -0.1491)
OKLCHoklch(33.33% 0.154 285)
XYZxyz(5.7506, 3.1670, 20.7261)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D80 #69801D
analogous
#1D3880 #341D80 #651D80
triadic
#341D80 #80341D #1D8034
tetradic
#341D80 #801D38 #69801D #1D8065
square
#341D80 #801D38 #69801D #1D8065
split-complementary
#341D80 #80651D #38801D
monochromatic
#0B061C #20124E #341D80 #4828B2 #6543D4

Accessibility & contrast

On white

12.86
#341D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D80
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D80#FFFFFF#000000##FFFFFF
##341D801.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#0C394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341d80;
/* rgb */ color: rgb(52, 29, 128);
/* oklch */ color: oklch(33.3% 0.154 285.0);
Tailwind
colors: {
  custom: {
    50: '#755ca6',
    500: '#341d80',
    950: '#000000',
  },
}
SCSS
$custom: #341d80;
$custom-light: #755ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#341d80",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 253.939,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33331,
    "c": 0.15438,
    "h": 285
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#341D80
secondary
#9AB345
accent
#E642C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D80

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

Preview Lab → · Contrast checker → · Palette generator →

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