#341C87#341C87

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

Color values

HEX#341C87
RGBrgb(52, 28, 135)
HSLhsl(253, 66%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(61.5%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.24, 40.78, -55.29)
CIE-LCHlch(21.24, 68.71, 306.41°)
OKLaboklab(33.93% 0.0388 -0.1594)
OKLCHoklch(33.93% 0.164 283.7)
XYZxyz(6.2033, 3.3094, 23.2289)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C87 #6F871C
analogous
#1C3A87 #341C87 #6A1C87
triadic
#341C87 #87341C #1C8734
tetradic
#341C87 #871C3A #6F871C #1C876A
square
#341C87 #871C3A #6F871C #1C876A
split-complementary
#341C87 #876A1C #3A871C
monochromatic
#0D0722 #201154 #341C87 #4827BA #6645D8

Accessibility & contrast

On white

12.64
#341C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C87
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C87#FFFFFF#000000##FFFFFF
##341C871.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341c87;
/* rgb */ color: rgb(52, 28, 135);
/* oklch */ color: oklch(33.9% 0.164 283.7);
Tailwind
colors: {
  custom: {
    50: '#775cab',
    500: '#341c87',
    950: '#000000',
  },
}
SCSS
$custom: #341c87;
$custom-light: #775cab;
$custom-dark: #000000;
JSON
{
  "hex": "#341c87",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 253.458,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.16403,
    "h": 283.7
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#341C87
secondary
#A0BA45
accent
#E93FC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C87

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

Preview Lab → · Contrast checker → · Palette generator →

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