#341B80#341B80

#341B80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.156 H 285.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#341B80
RGBrgb(52, 27, 128)
HSLhsl(255, 65%, 30%)
HSVhsv(255, 79%, 50%)
CMYKcmyk(59.4%, 78.9%, 0%, 49.8%)
CIE-LABlab(20.33, 39.15, -52.38)
CIE-LCHlch(20.33, 65.40, 306.78°)
OKLaboklab(33.07% 0.0415 -0.1509)
OKLCHoklch(33.07% 0.156 285.4)
XYZxyz(5.7032, 3.0721, 20.7103)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B80 #67801B
analogous
#1B3580 #341B80 #661B80
triadic
#341B80 #80341B #1B8034
tetradic
#341B80 #801B35 #67801B #1B8066
square
#341B80 #801B35 #67801B #1B8066
split-complementary
#341B80 #80661B #35801B
monochromatic
#0B061B #1F104D #341B80 #4926B3 #643FD6

Accessibility & contrast

On white

13.01
#341B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B80
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B80#FFFFFF#000000##FFFFFF
##341B801.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#0C384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341b80;
/* rgb */ color: rgb(52, 27, 128);
/* oklch */ color: oklch(33.1% 0.156 285.4);
Tailwind
colors: {
  custom: {
    50: '#755ba6',
    500: '#341b80',
    950: '#000000',
  },
}
SCSS
$custom: #341b80;
$custom-light: #755ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#341b80",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 254.851,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33071,
    "c": 0.15648,
    "h": 285.4
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#341B80
secondary
#98B443
accent
#E840BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B80

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

Preview Lab → · Contrast checker → · Palette generator →

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