#341A9D#341A9D

#341A9D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.192 H 279.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#341A9D
RGBrgb(52, 26, 157)
HSLhsl(252, 72%, 36%)
HSVhsv(252, 83%, 62%)
CMYKcmyk(66.9%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.35, 48.33, -65.45)
CIE-LCHlch(23.35, 81.36, 306.44°)
OKLaboklab(36.11% 0.0329 -0.1889)
OKLCHoklch(36.11% 0.192 279.9)
XYZxyz(7.8694, 3.9025, 32.2303)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9D #839D1A
analogous
#1A429D #341A9D #751A9D
triadic
#341A9D #9D341A #1A9D34
tetradic
#341A9D #9D1A42 #839D1A #1A9D75
square
#341A9D #9D1A42 #839D1A #1A9D75
split-complementary
#341A9D #9D751A #429D1A
monochromatic
#110934 #231168 #341A9D #4523D2 #6D4FE2

Accessibility & contrast

On white

11.79
#341A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A9D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9D#FFFFFF#000000##FFFFFF
##341A9D1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341a9d;
/* rgb */ color: rgb(52, 26, 157);
/* oklch */ color: oklch(36.1% 0.192 279.9);
Tailwind
colors: {
  custom: {
    50: '#7b5cbb',
    500: '#341a9d',
    950: '#000000',
  },
}
SCSS
$custom: #341a9d;
$custom-light: #7b5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9d",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 251.908,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36108,
    "c": 0.19179,
    "h": 279.9
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#341A9D
secondary
#ADC44E
accent
#EE39CA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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