#341B81#341B81

#341B81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 285.2°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#341B81
RGBrgb(52, 27, 129)
HSLhsl(255, 65%, 31%)
HSVhsv(255, 79%, 51%)
CMYKcmyk(59.7%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.43, 39.46, -52.84)
CIE-LCHlch(20.43, 65.95, 306.75°)
OKLaboklab(33.17% 0.0412 -0.1522)
OKLCHoklch(33.17% 0.158 285.2)
XYZxyz(5.7693, 3.0986, 21.0587)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B81 #68811B
analogous
#1B3581 #341B81 #671B81
triadic
#341B81 #81341B #1B8134
tetradic
#341B81 #811B35 #68811B #1B8167
square
#341B81 #811B35 #68811B #1B8167
split-complementary
#341B81 #81671B #35811B
monochromatic
#0B061C #20104E #341B81 #4826B4 #653FD7

Accessibility & contrast

On white

12.96
#341B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B81
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B81#FFFFFF#000000##FFFFFF
##341B811.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#0A384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341b81;
/* rgb */ color: rgb(52, 27, 129);
/* oklch */ color: oklch(33.2% 0.158 285.2);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#341b81',
    950: '#000000',
  },
}
SCSS
$custom: #341b81;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#341b81",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 254.706,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.1577,
    "h": 285.2
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#341B81
secondary
#99B543
accent
#E83FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341B81

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

Preview Lab → · Contrast checker → · Palette generator →

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