#341A9C#341A9C

#341A9C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.191 H 280.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#341A9C
RGBrgb(52, 26, 156)
HSLhsl(252, 71%, 36%)
HSVhsv(252, 83%, 61%)
CMYKcmyk(66.7%, 83.3%, 0%, 38.8%)
CIE-LABlab(23.23, 48.03, -65.03)
CIE-LCHlch(23.23, 80.85, 306.45°)
OKLaboklab(36% 0.0332 -0.1877)
OKLCHoklch(36% 0.191 280)
XYZxyz(7.7844, 3.8685, 31.7825)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9C #829C1A
analogous
#1A419C #341A9C #751A9C
triadic
#341A9C #9C341A #1A9C34
tetradic
#341A9C #9C1A41 #829C1A #1A9C75
square
#341A9C #9C1A41 #829C1A #1A9C75
split-complementary
#341A9C #9C751A #419C1A
monochromatic
#110933 #231168 #341A9C #4523D0 #6C4FE2

Accessibility & contrast

On white

11.84
#341A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A9C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9C#FFFFFF#000000##FFFFFF
##341A9C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341a9c;
/* rgb */ color: rgb(52, 26, 156);
/* oklch */ color: oklch(36.0% 0.191 280.0);
Tailwind
colors: {
  custom: {
    50: '#7b5cbb',
    500: '#341a9c',
    950: '#000000',
  },
}
SCSS
$custom: #341a9c;
$custom-light: #7b5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9c",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 156
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.19064,
    "h": 280
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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