#341B9B#341B9B

#341B9B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.189 H 280.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#341B9B
RGBrgb(52, 27, 155)
HSLhsl(252, 70%, 36%)
HSVhsv(252, 83%, 61%)
CMYKcmyk(66.5%, 82.6%, 0%, 39.2%)
CIE-LABlab(23.27, 47.29, -64.35)
CIE-LCHlch(23.27, 79.86, 306.31°)
OKLaboklab(35.99% 0.0331 -0.1858)
OKLCHoklch(35.99% 0.189 280.1)
XYZxyz(7.7226, 3.8799, 31.3459)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B9B #829B1B
analogous
#1B429B #341B9B #741B9B
triadic
#341B9B #9B341B #1B9B34
tetradic
#341B9B #9B1B42 #829B1B #1B9B74
square
#341B9B #9B1B42 #829B1B #1B9B74
split-complementary
#341B9B #9B741B #429B1B
monochromatic
#110933 #231267 #341B9B #4524CF #6C50E0

Accessibility & contrast

On white

11.82
#341B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#341B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B9B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B9B#FFFFFF#000000##FFFFFF
##341B9B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341b9b;
/* rgb */ color: rgb(52, 27, 155);
/* oklch */ color: oklch(36.0% 0.189 280.1);
Tailwind
colors: {
  custom: {
    50: '#7b5dba',
    500: '#341b9b',
    950: '#000000',
  },
}
SCSS
$custom: #341b9b;
$custom-light: #7b5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#341b9b",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 251.719,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35989,
    "c": 0.18869,
    "h": 280.1
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#341B9B
secondary
#ACC34F
accent
#ED3BCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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