#341785#341785

#341785 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.166 H 284.9°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#341785
RGBrgb(52, 23, 133)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 52%)
CMYKcmyk(60.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.19, 42.61, -55.78)
CIE-LCHlch(20.19, 70.19, 307.38°)
OKLaboklab(33.13% 0.0426 -0.1607)
OKLCHoklch(33.13% 0.166 284.9)
XYZxyz(5.9549, 3.0359, 22.4580)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341785 #688517
analogous
#173185 #341785 #6B1785
triadic
#341785 #853417 #178534
tetradic
#341785 #851731 #688517 #17856B
square
#341785 #851731 #688517 #17856B
split-complementary
#341785 #856B17 #318517
monochromatic
#0B051D #200E51 #341785 #4820B9 #653ADD

Accessibility & contrast

On white

13.07
#341785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341785
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341785#FFFFFF#000000##FFFFFF
##3417851.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#02384F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341785;
/* rgb */ color: rgb(52, 23, 133);
/* oklch */ color: oklch(33.1% 0.166 284.9);
Tailwind
colors: {
  custom: {
    50: '#7759aa',
    500: '#341785',
    950: '#000000',
  },
}
SCSS
$custom: #341785;
$custom-light: #7759aa;
$custom-dark: #000000;
JSON
{
  "hex": "#341785",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 255.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33131,
    "c": 0.1663,
    "h": 284.9
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#341785
secondary
#99B93F
accent
#ED3BBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341785

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

Preview Lab → · Contrast checker → · Palette generator →

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