#341174#341174

#341174 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.152 H 290.3°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#341174
RGBrgb(52, 17, 116)
HSLhsl(261, 74%, 26%)
HSVhsv(261, 85%, 45%)
CMYKcmyk(55.2%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.42, 40.35, -49.50)
CIE-LCHlch(17.42, 63.86, 309.18°)
OKLaboklab(30.67% 0.0526 -0.1423)
OKLCHoklch(30.67% 0.152 290.3)
XYZxyz(4.7681, 2.3917, 16.7300)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341174 #517411
analogous
#111F74 #341174 #651174
triadic
#341174 #743411 #117434
tetradic
#341174 #74111F #517411 #117465
square
#341174 #74111F #517411 #117465
split-complementary
#341174 #746511 #1F7411
monochromatic
#0C041B #1C093F #341174 #4C19A9 #6421DE

Accessibility & contrast

On white

14.20
#341174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341174
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341174#FFFFFF#000000##FFFFFF
##3411741.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#1C2F44
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341174;
/* rgb */ color: rgb(52, 17, 116);
/* oklch */ color: oklch(30.7% 0.152 290.3);
Tailwind
colors: {
  custom: {
    50: '#74559d',
    500: '#341174',
    950: '#000000',
  },
}
SCSS
$custom: #341174;
$custom-light: #74559d;
$custom-dark: #000000;
JSON
{
  "hex": "#341174",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 261.212,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30667,
    "c": 0.15175,
    "h": 290.3
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#341174
secondary
#82AB36
accent
#F137AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341174

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

Preview Lab → · Contrast checker → · Palette generator →

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