#341A84#341A84

#341A84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.162 H 284.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#341A84
RGBrgb(52, 26, 132)
HSLhsl(255, 67%, 31%)
HSVhsv(255, 80%, 52%)
CMYKcmyk(60.6%, 80.3%, 0%, 48.2%)
CIE-LABlab(20.57, 40.87, -54.51)
CIE-LCHlch(20.57, 68.13, 306.87°)
OKLaboklab(33.37% 0.041 -0.1571)
OKLCHoklch(33.37% 0.162 284.6)
XYZxyz(5.9492, 3.1344, 22.1168)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A84 #6A841A
analogous
#1A3584 #341A84 #691A84
triadic
#341A84 #84341A #1A8434
tetradic
#341A84 #841A35 #6A841A #1A8469
square
#341A84 #841A35 #6A841A #1A8469
split-complementary
#341A84 #84691A #35841A
monochromatic
#0C061E #201051 #341A84 #4824B7 #653FD9

Accessibility & contrast

On white

12.91
#341A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A84
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A84#FFFFFF#000000##FFFFFF
##341A841.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#04394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341a84;
/* rgb */ color: rgb(52, 26, 132);
/* oklch */ color: oklch(33.4% 0.162 284.6);
Tailwind
colors: {
  custom: {
    50: '#765aa9',
    500: '#341a84',
    950: '#000000',
  },
}
SCSS
$custom: #341a84;
$custom-light: #765aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#341a84",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 254.717,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.16234,
    "h": 284.6
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#341A84
secondary
#9BB842
accent
#EA3EC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A84

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

Preview Lab → · Contrast checker → · Palette generator →

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