#341E81#341E81

#341E81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.155 H 284.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#341E81
RGBrgb(52, 30, 129)
HSLhsl(253, 62%, 31%)
HSVhsv(253, 77%, 51%)
CMYKcmyk(59.7%, 76.7%, 0%, 49.4%)
CIE-LABlab(20.99, 37.87, -51.92)
CIE-LCHlch(20.99, 64.27, 306.10°)
OKLaboklab(33.57% 0.039 -0.1496)
OKLCHoklch(33.57% 0.155 284.6)
XYZxyz(5.8417, 3.2432, 21.0828)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E81 #6B811E
analogous
#1E3981 #341E81 #651E81
triadic
#341E81 #81341E #1E8134
tetradic
#341E81 #811E39 #6B811E #1E8165
square
#341E81 #811E39 #6B811E #1E8165
split-complementary
#341E81 #81651E #39811E
monochromatic
#0C071E #20124F #341E81 #482AB3 #6546D4

Accessibility & contrast

On white

12.74
#341E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E81
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E81#FFFFFF#000000##FFFFFF
##341E811.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#093A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341e81;
/* rgb */ color: rgb(52, 30, 129);
/* oklch */ color: oklch(33.6% 0.155 284.6);
Tailwind
colors: {
  custom: {
    50: '#755da7',
    500: '#341e81',
    950: '#000000',
  },
}
SCSS
$custom: #341e81;
$custom-light: #755da7;
$custom-dark: #000000;
JSON
{
  "hex": "#341e81",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 253.333,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.15455,
    "h": 284.6
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#341E81
secondary
#9CB447
accent
#E542C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E81

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

Preview Lab → · Contrast checker → · Palette generator →

#341E81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva