#341E8E#341E8E

#341E8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.171 H 282.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#341E8E
RGBrgb(52, 30, 142)
HSLhsl(252, 65%, 34%)
HSVhsv(252, 79%, 56%)
CMYKcmyk(63.4%, 78.9%, 0%, 44.3%)
CIE-LABlab(22.34, 41.91, -57.86)
CIE-LCHlch(22.34, 71.44, 305.92°)
OKLaboklab(34.92% 0.0354 -0.1669)
OKLCHoklch(34.92% 0.171 282)
XYZxyz(6.7614, 3.6111, 25.9267)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E8E #788E1E
analogous
#1E408E #341E8E #6C1E8E
triadic
#341E8E #8E341E #1E8E34
tetradic
#341E8E #8E1E40 #788E1E #1E8E6C
square
#341E8E #8E1E40 #788E1E #1E8E6C
split-complementary
#341E8E #8E6C1E #408E1E
monochromatic
#0F0929 #21135B #341E8E #4729C1 #694DD9

Accessibility & contrast

On white

12.19
#341E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#341E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E8E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E8E#FFFFFF#000000##FFFFFF
##341E8E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341e8e;
/* rgb */ color: rgb(52, 30, 142);
/* oklch */ color: oklch(34.9% 0.171 282.0);
Tailwind
colors: {
  custom: {
    50: '#785db0',
    500: '#341e8e',
    950: '#000000',
  },
}
SCSS
$custom: #341e8e;
$custom-light: #785db0;
$custom-dark: #000000;
JSON
{
  "hex": "#341e8e",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 251.786,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3492,
    "c": 0.1706,
    "h": 282
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#341E8E
secondary
#A6BC4C
accent
#E840C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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