#341C80#341C80

#341C80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.155 H 285.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#341C80
RGBrgb(52, 28, 128)
HSLhsl(254, 64%, 31%)
HSVhsv(254, 78%, 50%)
CMYKcmyk(59.4%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.51, 38.63, -52.08)
CIE-LCHlch(20.51, 64.84, 306.57°)
OKLaboklab(33.2% 0.0408 -0.15)
OKLCHoklch(33.2% 0.155 285.2)
XYZxyz(5.7265, 3.1187, 20.7181)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C80 #68801C
analogous
#1C3680 #341C80 #661C80
triadic
#341C80 #80341C #1C8034
tetradic
#341C80 #801C36 #68801C #1C8066
square
#341C80 #801C36 #68801C #1C8066
split-complementary
#341C80 #80661C #36801C
monochromatic
#0B061C #20114E #341C80 #4827B2 #6541D5

Accessibility & contrast

On white

12.93
#341C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C80
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C80#FFFFFF#000000##FFFFFF
##341C801.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#0C384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341c80;
/* rgb */ color: rgb(52, 28, 128);
/* oklch */ color: oklch(33.2% 0.155 285.2);
Tailwind
colors: {
  custom: {
    50: '#755ba6',
    500: '#341c80',
    950: '#000000',
  },
}
SCSS
$custom: #341c80;
$custom-light: #755ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#341c80",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 254.4,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33199,
    "c": 0.15544,
    "h": 285.2
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341C80

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

Preview Lab → · Contrast checker → · Palette generator →

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