#341783#341783

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

Color values

HEX#341783
RGBrgb(52, 23, 131)
HSLhsl(256, 70%, 30%)
HSVhsv(256, 82%, 51%)
CMYKcmyk(60.3%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.97, 42.02, -54.88)
CIE-LCHlch(19.97, 69.11, 307.44°)
OKLaboklab(32.92% 0.0433 -0.1581)
OKLCHoklch(32.92% 0.164 285.3)
XYZxyz(5.8181, 2.9812, 21.7372)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341783 #668317
analogous
#173083 #341783 #6A1783
triadic
#341783 #833417 #178334
tetradic
#341783 #831730 #668317 #17836A
square
#341783 #831730 #668317 #17836A
split-complementary
#341783 #836A17 #308317
monochromatic
#0B051B #1F0E4F #341783 #4920B7 #6438DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##341783#FFFFFF#000000##FFFFFF
##3417831.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)
#003386
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#06374D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341783;
/* rgb */ color: rgb(52, 23, 131);
/* oklch */ color: oklch(32.9% 0.164 285.3);
Tailwind
colors: {
  custom: {
    50: '#7659a8',
    500: '#341783',
    950: '#000000',
  },
}
SCSS
$custom: #341783;
$custom-light: #7659a8;
$custom-dark: #000000;
JSON
{
  "hex": "#341783",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 256.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.16393,
    "h": 285.3
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#341783
secondary
#97B73F
accent
#ED3BBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341783

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

Preview Lab → · Contrast checker → · Palette generator →

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