#341D87#341D87

#341D87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.163 H 283.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#341D87
RGBrgb(52, 29, 135)
HSLhsl(253, 65%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(61.5%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.42, 40.27, -55.00)
CIE-LCHlch(21.42, 68.16, 306.21°)
OKLaboklab(34.06% 0.0381 -0.1585)
OKLCHoklch(34.06% 0.163 283.5)
XYZxyz(6.2274, 3.3576, 23.2369)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D87 #70871D
analogous
#1D3B87 #341D87 #691D87
triadic
#341D87 #87341D #1D8734
tetradic
#341D87 #871D3B #70871D #1D8769
square
#341D87 #871D3B #70871D #1D8769
split-complementary
#341D87 #87691D #3B871D
monochromatic
#0D0722 #211255 #341D87 #4728B9 #6647D7

Accessibility & contrast

On white

12.56
#341D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D87
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D87#FFFFFF#000000##FFFFFF
##341D871.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341d87;
/* rgb */ color: rgb(52, 29, 135);
/* oklch */ color: oklch(34.1% 0.163 283.5);
Tailwind
colors: {
  custom: {
    50: '#775cab',
    500: '#341d87',
    950: '#000000',
  },
}
SCSS
$custom: #341d87;
$custom-light: #775cab;
$custom-dark: #000000;
JSON
{
  "hex": "#341d87",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 253.019,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34056,
    "c": 0.16303,
    "h": 283.5
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#341D87
secondary
#A0B946
accent
#E840C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341D87

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

Preview Lab → · Contrast checker → · Palette generator →

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