#341D81#341D81

#341D81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.156 H 284.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#341D81
RGBrgb(52, 29, 129)
HSLhsl(254, 63%, 31%)
HSVhsv(254, 78%, 51%)
CMYKcmyk(59.7%, 77.5%, 0%, 49.4%)
CIE-LABlab(20.80, 38.41, -52.24)
CIE-LCHlch(20.80, 64.84, 306.33°)
OKLaboklab(33.43% 0.0397 -0.1505)
OKLCHoklch(33.43% 0.156 284.8)
XYZxyz(5.8168, 3.1934, 21.0745)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D81 #6A811D
analogous
#1D3881 #341D81 #661D81
triadic
#341D81 #81341D #1D8134
tetradic
#341D81 #811D38 #6A811D #1D8166
square
#341D81 #811D38 #6A811D #1D8166
split-complementary
#341D81 #81661D #38811D
monochromatic
#0C071D #20124F #341D81 #4828B3 #6544D5

Accessibility & contrast

On white

12.81
#341D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D81
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D81#FFFFFF#000000##FFFFFF
##341D811.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#0A394E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341d81;
/* rgb */ color: rgb(52, 29, 129);
/* oklch */ color: oklch(33.4% 0.156 284.8);
Tailwind
colors: {
  custom: {
    50: '#755ca7',
    500: '#341d81',
    950: '#000000',
  },
}
SCSS
$custom: #341d81;
$custom-light: #755ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#341d81",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 253.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33433,
    "c": 0.15563,
    "h": 284.8
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#341D81
secondary
#9BB446
accent
#E641C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D81

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

Preview Lab → · Contrast checker → · Palette generator →

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