#341F97#341F97

#341F97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.181 H 280.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#341F97
RGBrgb(52, 31, 151)
HSLhsl(251, 66%, 36%)
HSVhsv(251, 79%, 59%)
CMYKcmyk(65.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.48, 44.17, -61.54)
CIE-LCHlch(23.48, 75.75, 305.67°)
OKLaboklab(36.01% 0.0322 -0.1776)
OKLCHoklch(36.01% 0.181 280.3)
XYZxyz(7.4903, 3.9438, 29.6387)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F97 #82971F
analogous
#1F4697 #341F97 #701F97
triadic
#341F97 #97341F #1F9734
tetradic
#341F97 #971F46 #82971F #1F9770
square
#341F97 #971F46 #82971F #1F9770
split-complementary
#341F97 #97701F #46971F
monochromatic
#110A31 #231564 #341F97 #4529CA #6C54DC

Accessibility & contrast

On white

11.74
#341F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#341F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F97
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F97#FFFFFF#000000##FFFFFF
##341F971.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341f97;
/* rgb */ color: rgb(52, 31, 151);
/* oklch */ color: oklch(36.0% 0.181 280.3);
Tailwind
colors: {
  custom: {
    50: '#7a5eb7',
    500: '#341f97',
    950: '#000000',
  },
}
SCSS
$custom: #341f97;
$custom-light: #7a5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#341f97",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 250.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36007,
    "c": 0.18053,
    "h": 280.3
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#341F97
secondary
#ACBF52
accent
#E93FCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #341F97

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

Preview Lab → · Contrast checker → · Palette generator →

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