#341A71#341A71

#341A71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.139 H 289.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#341A71
RGBrgb(52, 26, 113)
HSLhsl(258, 63%, 27%)
HSVhsv(258, 77%, 44%)
CMYKcmyk(54%, 77%, 0%, 55.7%)
CIE-LABlab(18.63, 35.10, -45.57)
CIE-LCHlch(18.63, 57.52, 307.60°)
OKLaboklab(31.42% 0.0465 -0.1309)
OKLCHoklch(31.42% 0.139 289.6)
XYZxyz(4.7653, 2.6609, 15.8821)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A71 #57711A
analogous
#1A2C71 #341A71 #601A71
triadic
#341A71 #71341A #1A7134
tetradic
#341A71 #711A2C #57711A #1A7160
square
#341A71 #711A2C #57711A #1A7160
split-complementary
#341A71 #71601A #2C711A
monochromatic
#0B0619 #1D0F3F #341A71 #4B25A3 #6335D0

Accessibility & contrast

On white

13.71
#341A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#341A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A71
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A71#FFFFFF#000000##FFFFFF
##341A711.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#1E3144
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341a71;
/* rgb */ color: rgb(52, 26, 113);
/* oklch */ color: oklch(31.4% 0.139 289.6);
Tailwind
colors: {
  custom: {
    50: '#73599b',
    500: '#341a71',
    950: '#000000',
  },
}
SCSS
$custom: #341a71;
$custom-light: #73599b;
$custom-dark: #000000;
JSON
{
  "hex": "#341a71",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 257.931,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31417,
    "c": 0.13895,
    "h": 289.6
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#341A71
secondary
#88A641
accent
#E642B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341A71

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

Preview Lab → · Contrast checker → · Palette generator →

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