#341173#341173

#341173 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.151 H 290.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#341173
RGBrgb(52, 17, 115)
HSLhsl(261, 74%, 26%)
HSVhsv(261, 85%, 45%)
CMYKcmyk(54.8%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.31, 40.06, -49.03)
CIE-LCHlch(17.31, 63.32, 309.25°)
OKLaboklab(30.56% 0.053 -0.141)
OKLCHoklch(30.56% 0.151 290.6)
XYZxyz(4.7102, 2.3686, 16.4253)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341173 #507311
analogous
#111F73 #341173 #651173
triadic
#341173 #733411 #117334
tetradic
#341173 #73111F #507311 #117365
square
#341173 #73111F #507311 #117365
split-complementary
#341173 #736511 #1F7311
monochromatic
#0C041B #1C093E #341173 #4C19A8 #6421DE

Accessibility & contrast

On white

14.25
#341173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341173
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341173#FFFFFF#000000##FFFFFF
##3411731.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#1D2E43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341173;
/* rgb */ color: rgb(52, 17, 115);
/* oklch */ color: oklch(30.6% 0.151 290.6);
Tailwind
colors: {
  custom: {
    50: '#74559c',
    500: '#341173',
    950: '#000000',
  },
}
SCSS
$custom: #341173;
$custom-light: #74559c;
$custom-dark: #000000;
JSON
{
  "hex": "#341173",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 261.429,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3056,
    "c": 0.1506,
    "h": 290.6
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#341173
secondary
#81AA36
accent
#F137AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341173

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

Preview Lab → · Contrast checker → · Palette generator →

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