#341B99#341B99

#341B99 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.186 H 280.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#341B99
RGBrgb(52, 27, 153)
HSLhsl(252, 70%, 35%)
HSVhsv(252, 82%, 60%)
CMYKcmyk(66%, 82.4%, 0%, 40%)
CIE-LABlab(23.04, 46.70, -63.50)
CIE-LCHlch(23.04, 78.82, 306.33°)
OKLaboklab(35.77% 0.0337 -0.1833)
OKLCHoklch(35.77% 0.186 280.4)
XYZxyz(7.5561, 3.8132, 30.4687)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B99 #80991B
analogous
#1B4199 #341B99 #731B99
triadic
#341B99 #99341B #1B9934
tetradic
#341B99 #991B41 #80991B #1B9973
square
#341B99 #991B41 #80991B #1B9973
split-complementary
#341B99 #99731B #41991B
monochromatic
#110931 #221265 #341B99 #4624CD #6B4FE0

Accessibility & contrast

On white

11.91
#341B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#341B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B99
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B99#FFFFFF#000000##FFFFFF
##341B991.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341b99;
/* rgb */ color: rgb(52, 27, 153);
/* oklch */ color: oklch(35.8% 0.186 280.4);
Tailwind
colors: {
  custom: {
    50: '#7a5cb8',
    500: '#341b99',
    950: '#000000',
  },
}
SCSS
$custom: #341b99;
$custom-light: #7a5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341b99",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 251.905,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35766,
    "c": 0.18637,
    "h": 280.4
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341B99

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

Preview Lab → · Contrast checker → · Palette generator →

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