#341F99#341F99

#341F99 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.183 H 280.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#341F99
RGBrgb(52, 31, 153)
HSLhsl(250, 66%, 36%)
HSVhsv(250, 80%, 60%)
CMYKcmyk(66%, 79.7%, 0%, 40%)
CIE-LABlab(23.70, 44.79, -62.41)
CIE-LCHlch(23.70, 76.82, 305.66°)
OKLaboklab(36.22% 0.0316 -0.1802)
OKLCHoklch(36.22% 0.183 280)
XYZxyz(7.6541, 4.0093, 30.5013)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F99 #84991F
analogous
#1F4799 #341F99 #711F99
triadic
#341F99 #99341F #1F9934
tetradic
#341F99 #991F47 #84991F #1F9971
square
#341F99 #991F47 #84991F #1F9971
split-complementary
#341F99 #99711F #47991F
monochromatic
#110A33 #231566 #341F99 #4529CC #6D56DD

Accessibility & contrast

On white

11.65
#341F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F99
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F99#FFFFFF#000000##FFFFFF
##341F991.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341f99;
/* rgb */ color: rgb(52, 31, 153);
/* oklch */ color: oklch(36.2% 0.183 280.0);
Tailwind
colors: {
  custom: {
    50: '#7a5eb8',
    500: '#341f99',
    950: '#000000',
  },
}
SCSS
$custom: #341f99;
$custom-light: #7a5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341f99",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 250.328,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36223,
    "c": 0.18294,
    "h": 280
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#341F99
secondary
#AEC054
accent
#E93FCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341F99

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

Preview Lab → · Contrast checker → · Palette generator →

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