#341A82#341A82

#341A82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.160 H 285.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#341A82
RGBrgb(52, 26, 130)
HSLhsl(255, 67%, 31%)
HSVhsv(255, 80%, 51%)
CMYKcmyk(60%, 80%, 0%, 49%)
CIE-LABlab(20.36, 40.27, -53.59)
CIE-LCHlch(20.36, 67.04, 306.92°)
OKLaboklab(33.16% 0.0416 -0.1544)
OKLCHoklch(33.16% 0.16 285.1)
XYZxyz(5.8136, 3.0802, 21.4030)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A82 #68821A
analogous
#1A3482 #341A82 #681A82
triadic
#341A82 #82341A #1A8234
tetradic
#341A82 #821A34 #68821A #1A8268
square
#341A82 #821A34 #68821A #1A8268
split-complementary
#341A82 #82681A #34821A
monochromatic
#0B061C #20104F #341A82 #4824B5 #653ED8

Accessibility & contrast

On white

12.99
#341A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A82
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A82#FFFFFF#000000##FFFFFF
##341A821.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#08384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341a82;
/* rgb */ color: rgb(52, 26, 130);
/* oklch */ color: oklch(33.2% 0.160 285.1);
Tailwind
colors: {
  custom: {
    50: '#765aa7',
    500: '#341a82',
    950: '#000000',
  },
}
SCSS
$custom: #341a82;
$custom-light: #765aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#341a82",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33156,
    "c": 0.15992,
    "h": 285.1
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#341A82
secondary
#99B642
accent
#EA3EBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341A82

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

Preview Lab → · Contrast checker → · Palette generator →

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