#341A9B#341A9B

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

Color values

HEX#341A9B
RGBrgb(52, 26, 155)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 61%)
CMYKcmyk(66.5%, 83.2%, 0%, 39.2%)
CIE-LABlab(23.12, 47.74, -64.61)
CIE-LCHlch(23.12, 80.33, 306.46°)
OKLaboklab(35.88% 0.0336 -0.1865)
OKLCHoklch(35.88% 0.189 280.2)
XYZxyz(7.7001, 3.8348, 31.3384)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9B #819B1A
analogous
#1A409B #341A9B #741A9B
triadic
#341A9B #9B341A #1A9B34
tetradic
#341A9B #9B1A40 #819B1A #1A9B74
square
#341A9B #9B1A40 #819B1A #1A9B74
split-complementary
#341A9B #9B741A #409B1A
monochromatic
#110832 #221167 #341A9B #4623CF #6C4EE1

Accessibility & contrast

On white

11.88
#341A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A9B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9B#FFFFFF#000000##FFFFFF
##341A9B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341a9b;
/* rgb */ color: rgb(52, 26, 155);
/* oklch */ color: oklch(35.9% 0.189 280.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cba',
    500: '#341a9b',
    950: '#000000',
  },
}
SCSS
$custom: #341a9b;
$custom-light: #7b5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9b",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 252.093,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35883,
    "c": 0.18949,
    "h": 280.2
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#341A9B
secondary
#ACC44D
accent
#EE3ACA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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