#341886#341886

#341886 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.167 H 284.5°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#341886
RGBrgb(52, 24, 134)
HSLhsl(255, 70%, 31%)
HSVhsv(255, 82%, 53%)
CMYKcmyk(61.2%, 82.1%, 0%, 47.5%)
CIE-LABlab(20.46, 42.44, -55.96)
CIE-LCHlch(20.46, 70.23, 307.17°)
OKLaboklab(33.35% 0.0417 -0.1613)
OKLCHoklch(33.35% 0.167 284.5)
XYZxyz(6.0446, 3.1042, 22.8303)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341886 #6A8618
analogous
#183386 #341886 #6B1886
triadic
#341886 #863418 #188634
tetradic
#341886 #861833 #6A8618 #18866B
square
#341886 #861833 #6A8618 #18866B
split-complementary
#341886 #866B18 #338618
monochromatic
#0C051E #200F52 #341886 #4821BA #653CDC

Accessibility & contrast

On white

12.95
#341886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341886
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341886#FFFFFF#000000##FFFFFF
##3418861.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341886;
/* rgb */ color: rgb(52, 24, 134);
/* oklch */ color: oklch(33.4% 0.167 284.5);
Tailwind
colors: {
  custom: {
    50: '#775aaa',
    500: '#341886',
    950: '#000000',
  },
}
SCSS
$custom: #341886;
$custom-light: #775aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#341886",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 255.273,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3335,
    "c": 0.16659,
    "h": 284.5
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#341886
secondary
#9BBA40
accent
#EC3BBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341886

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

Preview Lab → · Contrast checker → · Palette generator →

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