#341980#341980

#341980 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 285.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#341980
RGBrgb(52, 25, 128)
HSLhsl(256, 67%, 30%)
HSVhsv(256, 80%, 50%)
CMYKcmyk(59.4%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.98, 40.16, -52.96)
CIE-LCHlch(19.98, 66.47, 307.17°)
OKLaboklab(32.82% 0.043 -0.1525)
OKLCHoklch(32.82% 0.158 285.7)
XYZxyz(5.6589, 2.9835, 20.6956)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341980 #658019
analogous
#193280 #341980 #671980
triadic
#341980 #803419 #198034
tetradic
#341980 #801932 #658019 #198067
square
#341980 #801932 #658019 #198067
split-complementary
#341980 #806719 #328019
monochromatic
#0A051A #1F0F4D #341980 #4923B3 #643BD9

Accessibility & contrast

On white

13.15
#341980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341980
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341980#FFFFFF#000000##FFFFFF
##3419801.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#0C374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341980;
/* rgb */ color: rgb(52, 25, 128);
/* oklch */ color: oklch(32.8% 0.158 285.7);
Tailwind
colors: {
  custom: {
    50: '#765aa6',
    500: '#341980',
    950: '#000000',
  },
}
SCSS
$custom: #341980;
$custom-light: #765aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#341980",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 255.728,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32825,
    "c": 0.15848,
    "h": 285.7
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#341980
secondary
#96B441
accent
#EA3EBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341980

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

Preview Lab → · Contrast checker → · Palette generator →

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