#341B9A#341B9A

#341B9A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.188 H 280.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#341B9A
RGBrgb(52, 27, 154)
HSLhsl(252, 70%, 35%)
HSVhsv(252, 82%, 60%)
CMYKcmyk(66.2%, 82.5%, 0%, 39.6%)
CIE-LABlab(23.16, 47.00, -63.93)
CIE-LCHlch(23.16, 79.34, 306.32°)
OKLaboklab(35.88% 0.0334 -0.1845)
OKLCHoklch(35.88% 0.188 280.3)
XYZxyz(7.6390, 3.8464, 30.9055)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B9A #819A1B
analogous
#1B419A #341B9A #731B9A
triadic
#341B9A #9A341B #1B9A34
tetradic
#341B9A #9A1B41 #819A1B #1B9A73
square
#341B9A #9A1B41 #819A1B #1B9A73
split-complementary
#341B9A #9A731B #419A1B
monochromatic
#110932 #221266 #341B9A #4624CE #6C4FE0

Accessibility & contrast

On white

11.87
#341B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#341B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B9A
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B9A#FFFFFF#000000##FFFFFF
##341B9A1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341b9a;
/* rgb */ color: rgb(52, 27, 154);
/* oklch */ color: oklch(35.9% 0.188 280.3);
Tailwind
colors: {
  custom: {
    50: '#7b5cb9',
    500: '#341b9a',
    950: '#000000',
  },
}
SCSS
$custom: #341b9a;
$custom-light: #7b5cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#341b9a",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 251.811,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35877,
    "c": 0.18753,
    "h": 280.3
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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