#341A7B#341A7B

#341A7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.151 H 286.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#341A7B
RGBrgb(52, 26, 123)
HSLhsl(256, 65%, 29%)
HSVhsv(256, 79%, 48%)
CMYKcmyk(57.7%, 78.9%, 0%, 51.8%)
CIE-LABlab(19.63, 38.15, -50.35)
CIE-LCHlch(19.63, 63.17, 307.15°)
OKLaboklab(32.43% 0.0437 -0.1449)
OKLCHoklch(32.43% 0.151 286.8)
XYZxyz(5.3597, 2.8986, 19.0121)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A7B #617B1A
analogous
#1A317B #341A7B #651A7B
triadic
#341A7B #7B341A #1A7B34
tetradic
#341A7B #7B1A31 #617B1A #1A7B65
square
#341A7B #7B1A31 #617B1A #1A7B65
split-complementary
#341A7B #7B651A #317B1A
monochromatic
#0B0519 #1F0F48 #341A7B #4925AE #643AD5

Accessibility & contrast

On white

13.29
#341A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A7B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A7B#FFFFFF#000000##FFFFFF
##341A7B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#143549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341a7b;
/* rgb */ color: rgb(52, 26, 123);
/* oklch */ color: oklch(32.4% 0.151 286.8);
Tailwind
colors: {
  custom: {
    50: '#755aa2',
    500: '#341a7b',
    950: '#000000',
  },
}
SCSS
$custom: #341a7b;
$custom-light: #755aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#341a7b",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 256.082,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.15138,
    "h": 286.8
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#341A7B
secondary
#92AF42
accent
#E840BB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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