#341D98#341D98

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

Color values

HEX#341D98
RGBrgb(52, 29, 152)
HSLhsl(251, 68%, 35%)
HSVhsv(251, 81%, 60%)
CMYKcmyk(65.8%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.25, 45.46, -62.54)
CIE-LCHlch(23.25, 77.31, 306.02°)
OKLaboklab(35.88% 0.033 -0.1805)
OKLCHoklch(35.88% 0.184 280.4)
XYZxyz(7.5212, 3.8752, 30.0513)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D98 #81981D
analogous
#1D4398 #341D98 #721D98
triadic
#341D98 #98341D #1D9834
tetradic
#341D98 #981D43 #81981D #1D9872
square
#341D98 #981D43 #81981D #1D9872
split-complementary
#341D98 #98721D #43981D
monochromatic
#110931 #221365 #341D98 #4627CB #6C52DE

Accessibility & contrast

On white

11.83
#341D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D98
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D98#FFFFFF#000000##FFFFFF
##341D981.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341d98;
/* rgb */ color: rgb(52, 29, 152);
/* oklch */ color: oklch(35.9% 0.184 280.4);
Tailwind
colors: {
  custom: {
    50: '#7a5db8',
    500: '#341d98',
    950: '#000000',
  },
}
SCSS
$custom: #341d98;
$custom-light: #7a5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#341d98",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 251.22,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35879,
    "c": 0.18351,
    "h": 280.4
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#341D98
secondary
#ACC150
accent
#EB3DCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341D98

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

Preview Lab → · Contrast checker → · Palette generator →

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