#341780#341780

#341780 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.160 H 286.0°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#341780
RGBrgb(52, 23, 128)
HSLhsl(257, 70%, 30%)
HSVhsv(257, 82%, 50%)
CMYKcmyk(59.4%, 82%, 0%, 49.8%)
CIE-LABlab(19.64, 41.13, -53.51)
CIE-LCHlch(19.64, 67.49, 307.55°)
OKLaboklab(32.59% 0.0443 -0.1541)
OKLCHoklch(32.59% 0.16 286)
XYZxyz(5.6177, 2.9010, 20.6818)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341780 #638017
analogous
#172F80 #341780 #681780
triadic
#341780 #803417 #178034
tetradic
#341780 #80172F #638017 #178068
square
#341780 #80172F #638017 #178068
split-complementary
#341780 #806817 #2F8017
monochromatic
#0B051A #1F0E4C #341780 #4920B4 #6436DB

Accessibility & contrast

On white

13.29
#341780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341780
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341780#FFFFFF#000000##FFFFFF
##3417801.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#0D364C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341780;
/* rgb */ color: rgb(52, 23, 128);
/* oklch */ color: oklch(32.6% 0.160 286.0);
Tailwind
colors: {
  custom: {
    50: '#7659a6',
    500: '#341780',
    950: '#000000',
  },
}
SCSS
$custom: #341780;
$custom-light: #7659a6;
$custom-dark: #000000;
JSON
{
  "hex": "#341780",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 256.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32592,
    "c": 0.16038,
    "h": 286
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#341780
secondary
#94B43E
accent
#EC3BBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341780

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

Preview Lab → · Contrast checker → · Palette generator →

#341780 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva