#341D9B#341D9B

#341D9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.187 H 279.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#341D9B
RGBrgb(52, 29, 155)
HSLhsl(251, 68%, 36%)
HSVhsv(251, 81%, 61%)
CMYKcmyk(66.5%, 81.3%, 0%, 39.2%)
CIE-LABlab(23.59, 46.37, -63.83)
CIE-LCHlch(23.59, 78.89, 306.00°)
OKLaboklab(36.21% 0.0321 -0.1843)
OKLCHoklch(36.21% 0.187 279.9)
XYZxyz(7.7700, 3.9747, 31.3617)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D9B #849B1D
analogous
#1D459B #341D9B #731D9B
triadic
#341D9B #9B341D #1D9B34
tetradic
#341D9B #9B1D45 #849B1D #1D9B73
square
#341D9B #9B1D45 #849B1D #1D9B73
split-complementary
#341D9B #9B731D #459B1D
monochromatic
#110A34 #231367 #341D9B #4527CF #6D53DF

Accessibility & contrast

On white

11.70
#341D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D9B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D9B#FFFFFF#000000##FFFFFF
##341D9B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341d9b;
/* rgb */ color: rgb(52, 29, 155);
/* oklch */ color: oklch(36.2% 0.187 279.9);
Tailwind
colors: {
  custom: {
    50: '#7b5eba',
    500: '#341d9b',
    950: '#000000',
  },
}
SCSS
$custom: #341d9b;
$custom-light: #7b5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#341d9b",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 250.952,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36208,
    "c": 0.18705,
    "h": 279.9
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#341D9B
secondary
#AEC252
accent
#EB3CCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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