#341C98#341C98

#341C98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.184 H 280.5°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#341C98
RGBrgb(52, 28, 152)
HSLhsl(252, 69%, 35%)
HSVhsv(252, 82%, 60%)
CMYKcmyk(65.8%, 81.6%, 0%, 40.4%)
CIE-LABlab(23.09, 45.94, -62.81)
CIE-LCHlch(23.09, 77.81, 306.18°)
OKLaboklab(35.77% 0.0336 -0.1813)
OKLCHoklch(35.77% 0.184 280.5)
XYZxyz(7.4971, 3.8270, 30.0433)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C98 #80981C
analogous
#1C4298 #341C98 #721C98
triadic
#341C98 #98341C #1C9834
tetradic
#341C98 #981C42 #80981C #1C9872
square
#341C98 #981C42 #80981C #1C9872
split-complementary
#341C98 #98721C #42981C
monochromatic
#110931 #221264 #341C98 #4626CC #6B50DF

Accessibility & contrast

On white

11.89
#341C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#341C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C98
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C98#FFFFFF#000000##FFFFFF
##341C981.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341c98;
/* rgb */ color: rgb(52, 28, 152);
/* oklch */ color: oklch(35.8% 0.184 280.5);
Tailwind
colors: {
  custom: {
    50: '#7a5db8',
    500: '#341c98',
    950: '#000000',
  },
}
SCSS
$custom: #341c98;
$custom-light: #7a5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#341c98",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 251.613,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.18437,
    "h": 280.5
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#341C98
secondary
#ABC14E
accent
#EC3CCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341C98

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

Preview Lab → · Contrast checker → · Palette generator →

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