#341C84#341C84

#341C84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.160 H 284.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#341C84
RGBrgb(52, 28, 132)
HSLhsl(254, 65%, 31%)
HSVhsv(254, 79%, 52%)
CMYKcmyk(60.6%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.93, 39.86, -53.93)
CIE-LCHlch(20.93, 67.06, 306.47°)
OKLaboklab(33.62% 0.0396 -0.1554)
OKLCHoklch(33.62% 0.16 284.3)
XYZxyz(5.9950, 3.2261, 22.1321)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C84 #6C841C
analogous
#1C3884 #341C84 #681C84
triadic
#341C84 #84341C #1C8434
tetradic
#341C84 #841C38 #6C841C #1C8468
square
#341C84 #841C38 #6C841C #1C8468
split-complementary
#341C84 #84681C #38841C
monochromatic
#0C071F #201152 #341C84 #4827B6 #6543D7

Accessibility & contrast

On white

12.76
#341C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C84
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C84#FFFFFF#000000##FFFFFF
##341C841.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#033A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341c84;
/* rgb */ color: rgb(52, 28, 132);
/* oklch */ color: oklch(33.6% 0.160 284.3);
Tailwind
colors: {
  custom: {
    50: '#765ca9',
    500: '#341c84',
    950: '#000000',
  },
}
SCSS
$custom: #341c84;
$custom-light: #765ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#341c84",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 253.846,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33615,
    "c": 0.16036,
    "h": 284.3
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#341C84
secondary
#9DB745
accent
#E840C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341C84

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

Preview Lab → · Contrast checker → · Palette generator →

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