#341B82#341B82

#341B82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.159 H 284.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#341B82
RGBrgb(52, 27, 130)
HSLhsl(255, 66%, 31%)
HSVhsv(255, 79%, 51%)
CMYKcmyk(60%, 79.2%, 0%, 49%)
CIE-LABlab(20.54, 39.76, -53.30)
CIE-LCHlch(20.54, 66.50, 306.72°)
OKLaboklab(33.28% 0.0409 -0.1536)
OKLCHoklch(33.28% 0.159 284.9)
XYZxyz(5.8361, 3.1253, 21.4105)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B82 #69821B
analogous
#1B3582 #341B82 #671B82
triadic
#341B82 #82341B #1B8234
tetradic
#341B82 #821B35 #69821B #1B8267
square
#341B82 #821B35 #69821B #1B8267
split-complementary
#341B82 #82671B #35821B
monochromatic
#0B061D #20104F #341B82 #4826B5 #6540D7

Accessibility & contrast

On white

12.92
#341B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B82
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B82#FFFFFF#000000##FFFFFF
##341B821.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#08394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341b82;
/* rgb */ color: rgb(52, 27, 130);
/* oklch */ color: oklch(33.3% 0.159 284.9);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#341b82',
    950: '#000000',
  },
}
SCSS
$custom: #341b82;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#341b82",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 254.563,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3328,
    "c": 0.15893,
    "h": 284.9
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#341B82
secondary
#9AB643
accent
#E93FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341B82

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

Preview Lab → · Contrast checker → · Palette generator →

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