#341A87#341A87

#341A87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.166 H 284.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#341A87
RGBrgb(52, 26, 135)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 53%)
CMYKcmyk(61.5%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.90, 41.78, -55.87)
CIE-LCHlch(20.90, 69.76, 306.79°)
OKLaboklab(33.69% 0.0401 -0.161)
OKLCHoklch(33.69% 0.166 284)
XYZxyz(6.1574, 3.2177, 23.2136)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A87 #6D871A
analogous
#1A3787 #341A87 #6B1A87
triadic
#341A87 #87341A #1A8734
tetradic
#341A87 #871A37 #6D871A #1A876B
square
#341A87 #871A37 #6D871A #1A876B
split-complementary
#341A87 #876B1A #37871A
monochromatic
#0C0620 #201054 #341A87 #4824BA #6641DA

Accessibility & contrast

On white

12.78
#341A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A87
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A87#FFFFFF#000000##FFFFFF
##341A871.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341a87;
/* rgb */ color: rgb(52, 26, 135);
/* oklch */ color: oklch(33.7% 0.166 284.0);
Tailwind
colors: {
  custom: {
    50: '#775bab',
    500: '#341a87',
    950: '#000000',
  },
}
SCSS
$custom: #341a87;
$custom-light: #775bab;
$custom-dark: #000000;
JSON
{
  "hex": "#341a87",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 254.312,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.16595,
    "h": 284
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#341A87
secondary
#9EBA42
accent
#EB3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A87

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

Preview Lab → · Contrast checker → · Palette generator →

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