#341981#341981

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

Color values

HEX#341981
RGBrgb(52, 25, 129)
HSLhsl(256, 68%, 30%)
HSVhsv(256, 81%, 51%)
CMYKcmyk(59.7%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.08, 40.46, -53.42)
CIE-LCHlch(20.08, 67.02, 307.14°)
OKLaboklab(32.93% 0.0426 -0.1539)
OKLCHoklch(32.93% 0.16 285.5)
XYZxyz(5.7251, 3.0100, 21.0439)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341981 #668119
analogous
#193281 #341981 #681981
triadic
#341981 #813419 #198134
tetradic
#341981 #811932 #668119 #198168
square
#341981 #811932 #668119 #198168
split-complementary
#341981 #816819 #328119
monochromatic
#0B051A #1F0F4E #341981 #4923B4 #643BD9

Accessibility & contrast

On white

13.11
#341981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341981
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341981#FFFFFF#000000##FFFFFF
##3419811.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341981;
/* rgb */ color: rgb(52, 25, 129);
/* oklch */ color: oklch(32.9% 0.160 285.5);
Tailwind
colors: {
  custom: {
    50: '#765aa7',
    500: '#341981',
    950: '#000000',
  },
}
SCSS
$custom: #341981;
$custom-light: #765aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#341981",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 255.577,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3293,
    "c": 0.15969,
    "h": 285.5
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#341981
secondary
#97B541
accent
#EA3DBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341981

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

Preview Lab → · Contrast checker → · Palette generator →

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