#341C82#341C82

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

Color values

HEX#341C82
RGBrgb(52, 28, 130)
HSLhsl(254, 65%, 31%)
HSVhsv(254, 78%, 51%)
CMYKcmyk(60%, 78.5%, 0%, 49%)
CIE-LABlab(20.72, 39.25, -53.01)
CIE-LCHlch(20.72, 65.95, 306.52°)
OKLaboklab(33.41% 0.0402 -0.1527)
OKLCHoklch(33.41% 0.158 284.7)
XYZxyz(5.8595, 3.1719, 21.4182)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C82 #6A821C
analogous
#1C3782 #341C82 #671C82
triadic
#341C82 #82341C #1C8234
tetradic
#341C82 #821C37 #6A821C #1C8267
square
#341C82 #821C37 #6A821C #1C8267
split-complementary
#341C82 #82671C #37821C
monochromatic
#0C061D #201150 #341C82 #4827B4 #6542D6

Accessibility & contrast

On white

12.85
#341C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C82
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C82#FFFFFF#000000##FFFFFF
##341C821.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341c82;
/* rgb */ color: rgb(52, 28, 130);
/* oklch */ color: oklch(33.4% 0.158 284.7);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#341c82',
    950: '#000000',
  },
}
SCSS
$custom: #341c82;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#341c82",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 254.118,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33406,
    "c": 0.15791,
    "h": 284.7
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#341C82
secondary
#9BB544
accent
#E840C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341C82

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

Preview Lab → · Contrast checker → · Palette generator →

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