#341F71#341F71

#341F71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.133 H 288.3°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#341F71
RGBrgb(52, 31, 113)
HSLhsl(255, 57%, 28%)
HSVhsv(255, 73%, 44%)
CMYKcmyk(54%, 72.6%, 0%, 55.7%)
CIE-LABlab(19.65, 32.26, -43.91)
CIE-LCHlch(19.65, 54.48, 306.30°)
OKLaboklab(32.14% 0.0417 -0.1261)
OKLCHoklch(32.14% 0.133 288.3)
XYZxyz(4.8859, 2.9021, 15.9223)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F71 #5C711F
analogous
#1F3371 #341F71 #5D1F71
triadic
#341F71 #71341F #1F7134
tetradic
#341F71 #711F33 #5C711F #1F715D
square
#341F71 #711F33 #5C711F #1F715D
split-complementary
#341F71 #715D1F #33711F
monochromatic
#0B0718 #1E1241 #341F71 #4A2CA1 #6340CB

Accessibility & contrast

On white

13.29
#341F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F71
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F71#FFFFFF#000000##FFFFFF
##341F711.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#1D3445
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341f71;
/* rgb */ color: rgb(52, 31, 113);
/* oklch */ color: oklch(32.1% 0.133 288.3);
Tailwind
colors: {
  custom: {
    50: '#725c9b',
    500: '#341f71',
    950: '#000000',
  },
}
SCSS
$custom: #341f71;
$custom-light: #725c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#341f71",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 255.366,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32139,
    "c": 0.13281,
    "h": 288.3
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#341F71
secondary
#8DA547
accent
#E048B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #341F71

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

Preview Lab → · Contrast checker → · Palette generator →

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