#341A89#341A89

#341A89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.168 H 283.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#341A89
RGBrgb(52, 26, 137)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 54%)
CMYKcmyk(62%, 81%, 0%, 46.3%)
CIE-LABlab(21.11, 42.38, -56.76)
CIE-LCHlch(21.11, 70.84, 306.75°)
OKLaboklab(33.9% 0.0394 -0.1637)
OKLCHoklch(33.9% 0.168 283.5)
XYZxyz(6.2995, 3.2746, 23.9622)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A89 #6F891A
analogous
#1A3889 #341A89 #6C1A89
triadic
#341A89 #89341A #1A8934
tetradic
#341A89 #891A38 #6F891A #1A896C
square
#341A89 #891A38 #6F891A #1A896C
split-complementary
#341A89 #896C1A #38891A
monochromatic
#0D0622 #201056 #341A89 #4824BC #6642DB

Accessibility & contrast

On white

12.69
#341A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#341A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A89
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A89#FFFFFF#000000##FFFFFF
##341A891.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341a89;
/* rgb */ color: rgb(52, 26, 137);
/* oklch */ color: oklch(33.9% 0.168 283.5);
Tailwind
colors: {
  custom: {
    50: '#775bad',
    500: '#341a89',
    950: '#000000',
  },
}
SCSS
$custom: #341a89;
$custom-light: #775bad;
$custom-dark: #000000;
JSON
{
  "hex": "#341a89",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 254.054,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.16835,
    "h": 283.5
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#341A89
secondary
#A0BC43
accent
#EB3DC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A89

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

Preview Lab → · Contrast checker → · Palette generator →

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