#341F96#341F96

#341F96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.179 H 280.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#341F96
RGBrgb(52, 31, 150)
HSLhsl(251, 66%, 35%)
HSVhsv(251, 79%, 59%)
CMYKcmyk(65.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.38, 43.86, -61.10)
CIE-LCHlch(23.38, 75.22, 305.67°)
OKLaboklab(35.9% 0.0325 -0.1764)
OKLCHoklch(35.9% 0.179 280.4)
XYZxyz(7.4094, 3.9115, 29.2128)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F96 #81961F
analogous
#1F4696 #341F96 #6F1F96
triadic
#341F96 #96341F #1F9634
tetradic
#341F96 #961F46 #81961F #1F966F
square
#341F96 #961F46 #81961F #1F966F
split-complementary
#341F96 #966F1F #46961F
monochromatic
#110A31 #221563 #341F96 #4629C9 #6C54DC

Accessibility & contrast

On white

11.78
#341F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#341F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F96
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F96#FFFFFF#000000##FFFFFF
##341F961.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341f96;
/* rgb */ color: rgb(52, 31, 150);
/* oklch */ color: oklch(35.9% 0.179 280.4);
Tailwind
colors: {
  custom: {
    50: '#795eb6',
    500: '#341f96',
    950: '#000000',
  },
}
SCSS
$custom: #341f96;
$custom-light: #795eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#341f96",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 250.588,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.17934,
    "h": 280.4
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341F96

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

Preview Lab → · Contrast checker → · Palette generator →

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