#341C7F#341C7F

#341C7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.154 H 285.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#341C7F
RGBrgb(52, 28, 127)
HSLhsl(255, 64%, 30%)
HSVhsv(255, 78%, 50%)
CMYKcmyk(59.1%, 78%, 0%, 50.2%)
CIE-LABlab(20.41, 38.32, -51.62)
CIE-LCHlch(20.41, 64.29, 306.59°)
OKLaboklab(33.1% 0.0411 -0.1486)
OKLCHoklch(33.1% 0.154 285.4)
XYZxyz(5.6610, 3.0925, 20.3732)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C7F #677F1C
analogous
#1C367F #341C7F #651C7F
triadic
#341C7F #7F341C #1C7F34
tetradic
#341C7F #7F1C36 #677F1C #1C7F65
square
#341C7F #7F1C36 #677F1C #1C7F65
split-complementary
#341C7F #7F651C #367F1C
monochromatic
#0B061B #1F114D #341C7F #4927B1 #6440D5

Accessibility & contrast

On white

12.97
#341C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C7F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C7F#FFFFFF#000000##FFFFFF
##341C7F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#0E384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341c7f;
/* rgb */ color: rgb(52, 28, 127);
/* oklch */ color: oklch(33.1% 0.154 285.4);
Tailwind
colors: {
  custom: {
    50: '#755ba5',
    500: '#341c7f',
    950: '#000000',
  },
}
SCSS
$custom: #341c7f;
$custom-light: #755ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#341c7f",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 254.545,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33096,
    "c": 0.1542,
    "h": 285.4
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#341C7F
secondary
#98B344
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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