#341F91#341F91

#341F91 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.173 H 281.3°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#341F91
RGBrgb(52, 31, 145)
HSLhsl(251, 65%, 35%)
HSVhsv(251, 79%, 57%)
CMYKcmyk(64.1%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.84, 42.32, -58.90)
CIE-LCHlch(22.84, 72.53, 305.70°)
OKLaboklab(35.36% 0.0339 -0.1699)
OKLCHoklch(35.36% 0.173 281.3)
XYZxyz(7.0154, 3.7538, 27.1375)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F91 #7C911F
analogous
#1F4391 #341F91 #6D1F91
triadic
#341F91 #91341F #1F9134
tetradic
#341F91 #911F43 #7C911F #1F916D
square
#341F91 #911F43 #7C911F #1F916D
split-complementary
#341F91 #916D1F #43911F
monochromatic
#10092C #22145F #341F91 #462AC3 #6A51DA

Accessibility & contrast

On white

11.99
#341F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#341F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F91
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F91#FFFFFF#000000##FFFFFF
##341F911.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341f91;
/* rgb */ color: rgb(52, 31, 145);
/* oklch */ color: oklch(35.4% 0.173 281.3);
Tailwind
colors: {
  custom: {
    50: '#785eb2',
    500: '#341f91',
    950: '#000000',
  },
}
SCSS
$custom: #341f91;
$custom-light: #785eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#341f91",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 251.053,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35364,
    "c": 0.17329,
    "h": 281.3
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#341F91
secondary
#A9BD4F
accent
#E840C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341F91

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

Preview Lab → · Contrast checker → · Palette generator →

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