#341881#341881

#341881 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.161 H 285.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#341881
RGBrgb(52, 24, 129)
HSLhsl(256, 69%, 30%)
HSVhsv(256, 81%, 51%)
CMYKcmyk(59.7%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.92, 40.95, -53.70)
CIE-LCHlch(19.92, 67.53, 307.33°)
OKLaboklab(32.81% 0.0433 -0.1547)
OKLCHoklch(32.81% 0.161 285.6)
XYZxyz(5.7041, 2.9680, 21.0369)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341881 #658118
analogous
#183181 #341881 #681881
triadic
#341881 #813418 #188134
tetradic
#341881 #811831 #658118 #188168
square
#341881 #811831 #658118 #188168
split-complementary
#341881 #816818 #318118
monochromatic
#0A051A #1F0E4D #341881 #4922B5 #6439DA

Accessibility & contrast

On white

13.18
#341881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341881
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341881#FFFFFF#000000##FFFFFF
##3418811.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#0A374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341881;
/* rgb */ color: rgb(52, 24, 129);
/* oklch */ color: oklch(32.8% 0.161 285.6);
Tailwind
colors: {
  custom: {
    50: '#7659a7',
    500: '#341881',
    950: '#000000',
  },
}
SCSS
$custom: #341881;
$custom-light: #7659a7;
$custom-dark: #000000;
JSON
{
  "hex": "#341881",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 256,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32813,
    "c": 0.16064,
    "h": 285.6
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#341881
secondary
#96B540
accent
#EB3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341881

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

Preview Lab → · Contrast checker → · Palette generator →

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