#341A98#341A98

#341A98 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.186 H 280.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#341A98
RGBrgb(52, 26, 152)
HSLhsl(252, 71%, 35%)
HSVhsv(252, 83%, 60%)
CMYKcmyk(65.8%, 82.9%, 0%, 40.4%)
CIE-LABlab(22.78, 46.85, -63.33)
CIE-LCHlch(22.78, 78.78, 306.50°)
OKLaboklab(35.55% 0.0346 -0.1828)
OKLCHoklch(35.55% 0.186 280.7)
XYZxyz(7.4513, 3.7353, 30.0280)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A98 #7E981A
analogous
#1A3F98 #341A98 #731A98
triadic
#341A98 #98341A #1A9834
tetradic
#341A98 #981A3F #7E981A #1A9873
square
#341A98 #981A3F #7E981A #1A9873
split-complementary
#341A98 #98731A #3F981A
monochromatic
#10082F #221164 #341A98 #4623CC #6B4CE0

Accessibility & contrast

On white

12.02
#341A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A98
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A98#FFFFFF#000000##FFFFFF
##341A981.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341a98;
/* rgb */ color: rgb(52, 26, 152);
/* oklch */ color: oklch(35.5% 0.186 280.7);
Tailwind
colors: {
  custom: {
    50: '#7a5cb8',
    500: '#341a98',
    950: '#000000',
  },
}
SCSS
$custom: #341a98;
$custom-light: #7a5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341a98",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 252.381,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.18601,
    "h": 280.7
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#341A98
secondary
#AAC24B
accent
#EE3AC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341A98

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

Preview Lab → · Contrast checker → · Palette generator →

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