#341D83#341D83

#341D83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.158 H 284.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#341D83
RGBrgb(52, 29, 131)
HSLhsl(254, 64%, 31%)
HSVhsv(254, 78%, 51%)
CMYKcmyk(60.3%, 77.9%, 0%, 48.6%)
CIE-LABlab(21.01, 39.03, -53.16)
CIE-LCHlch(21.01, 65.95, 306.28°)
OKLaboklab(33.64% 0.0392 -0.1532)
OKLCHoklch(33.64% 0.158 284.3)
XYZxyz(5.9510, 3.2471, 21.7815)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D83 #6C831D
analogous
#1D3983 #341D83 #671D83
triadic
#341D83 #83341D #1D8334
tetradic
#341D83 #831D39 #6C831D #1D8367
square
#341D83 #831D39 #6C831D #1D8367
split-complementary
#341D83 #83671D #39831D
monochromatic
#0C071F #201251 #341D83 #4828B5 #6545D6

Accessibility & contrast

On white

12.73
#341D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D83
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D83#FFFFFF#000000##FFFFFF
##341D831.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#053A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341d83;
/* rgb */ color: rgb(52, 29, 131);
/* oklch */ color: oklch(33.6% 0.158 284.3);
Tailwind
colors: {
  custom: {
    50: '#765ca8',
    500: '#341d83',
    950: '#000000',
  },
}
SCSS
$custom: #341d83;
$custom-light: #765ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#341d83",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 253.529,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33639,
    "c": 0.1581,
    "h": 284.3
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341D83

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

Preview Lab → · Contrast checker → · Palette generator →

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