#341A9A#341A9A

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

Color values

HEX#341A9A
RGBrgb(52, 26, 154)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 60%)
CMYKcmyk(66.2%, 83.1%, 0%, 39.6%)
CIE-LABlab(23.00, 47.45, -64.18)
CIE-LCHlch(23.00, 79.81, 306.47°)
OKLaboklab(35.77% 0.0339 -0.1853)
OKLCHoklch(35.77% 0.188 280.4)
XYZxyz(7.6165, 3.8013, 30.8979)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9A #809A1A
analogous
#1A409A #341A9A #741A9A
triadic
#341A9A #9A341A #1A9A34
tetradic
#341A9A #9A1A40 #809A1A #1A9A74
square
#341A9A #9A1A40 #809A1A #1A9A74
split-complementary
#341A9A #9A741A #409A1A
monochromatic
#110831 #221166 #341A9A #4623CE #6B4DE1

Accessibility & contrast

On white

11.93
#341A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#341A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A9A
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9A#FFFFFF#000000##FFFFFF
##341A9A1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341a9a;
/* rgb */ color: rgb(52, 26, 154);
/* oklch */ color: oklch(35.8% 0.188 280.4);
Tailwind
colors: {
  custom: {
    50: '#7b5cb9',
    500: '#341a9a',
    950: '#000000',
  },
}
SCSS
$custom: #341a9a;
$custom-light: #7b5cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9a",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 252.188,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35771,
    "c": 0.18834,
    "h": 280.4
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#341A9A
secondary
#ABC34D
accent
#EE3AC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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