#341A86#341A86

#341A86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.165 H 284.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#341A86
RGBrgb(52, 26, 134)
HSLhsl(254, 68%, 31%)
HSVhsv(254, 81%, 53%)
CMYKcmyk(61.2%, 80.6%, 0%, 47.5%)
CIE-LABlab(20.79, 41.48, -55.41)
CIE-LCHlch(20.79, 69.22, 306.81°)
OKLaboklab(33.58% 0.0404 -0.1597)
OKLCHoklch(33.58% 0.165 284.2)
XYZxyz(6.0873, 3.1897, 22.8445)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A86 #6C861A
analogous
#1A3686 #341A86 #6A1A86
triadic
#341A86 #86341A #1A8634
tetradic
#341A86 #861A36 #6C861A #1A866A
square
#341A86 #861A36 #6C861A #1A866A
split-complementary
#341A86 #866A1A #36861A
monochromatic
#0C061F #201053 #341A86 #4824B9 #6540DA

Accessibility & contrast

On white

12.82
#341A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A86
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A86#FFFFFF#000000##FFFFFF
##341A861.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341a86;
/* rgb */ color: rgb(52, 26, 134);
/* oklch */ color: oklch(33.6% 0.165 284.2);
Tailwind
colors: {
  custom: {
    50: '#775baa',
    500: '#341a86',
    950: '#000000',
  },
}
SCSS
$custom: #341a86;
$custom-light: #775baa;
$custom-dark: #000000;
JSON
{
  "hex": "#341a86",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 254.444,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33581,
    "c": 0.16475,
    "h": 284.2
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#341A86
secondary
#9DB942
accent
#EA3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A86

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

Preview Lab → · Contrast checker → · Palette generator →

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