#341E7A#341E7A

#341E7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 286.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#341E7A
RGBrgb(52, 30, 122)
HSLhsl(254, 61%, 30%)
HSVhsv(254, 75%, 48%)
CMYKcmyk(57.4%, 75.4%, 0%, 52.2%)
CIE-LABlab(20.30, 35.67, -48.62)
CIE-LCHlch(20.30, 60.30, 306.27°)
OKLaboklab(32.86% 0.0407 -0.1399)
OKLCHoklch(32.86% 0.146 286.2)
XYZxyz(5.3922, 3.0635, 18.7158)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E7A #647A1E
analogous
#1E367A #341E7A #621E7A
triadic
#341E7A #7A341E #1E7A34
tetradic
#341E7A #7A1E36 #647A1E #1E7A62
square
#341E7A #7A1E36 #647A1E #1E7A62
split-complementary
#341E7A #7A621E #367A1E
monochromatic
#0A0619 #1F1249 #341E7A #492AAB #6442D0

Accessibility & contrast

On white

13.02
#341E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E7A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E7A#FFFFFF#000000##FFFFFF
##341E7A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#15374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341e7a;
/* rgb */ color: rgb(52, 30, 122);
/* oklch */ color: oklch(32.9% 0.146 286.2);
Tailwind
colors: {
  custom: {
    50: '#745ca1',
    500: '#341e7a',
    950: '#000000',
  },
}
SCSS
$custom: #341e7a;
$custom-light: #745ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#341e7a",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 254.348,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32863,
    "c": 0.14569,
    "h": 286.2
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#341E7A
secondary
#95AE46
accent
#E444BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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