#341C97#341C97

#341C97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.183 H 280.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#341C97
RGBrgb(52, 28, 151)
HSLhsl(252, 69%, 35%)
HSVhsv(252, 81%, 59%)
CMYKcmyk(65.6%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.98, 45.64, -62.37)
CIE-LCHlch(22.98, 77.29, 306.19°)
OKLaboklab(35.66% 0.0339 -0.18)
OKLCHoklch(35.66% 0.183 280.7)
XYZxyz(7.4156, 3.7944, 29.6138)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C97 #7F971C
analogous
#1C4297 #341C97 #711C97
triadic
#341C97 #97341C #1C9734
tetradic
#341C97 #971C42 #7F971C #1C9771
square
#341C97 #971C42 #7F971C #1C9771
split-complementary
#341C97 #97711C #42971C
monochromatic
#100930 #221263 #341C97 #4626CB #6B4FDE

Accessibility & contrast

On white

11.94
#341C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#341C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C97
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C97#FFFFFF#000000##FFFFFF
##341C971.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341c97;
/* rgb */ color: rgb(52, 28, 151);
/* oklch */ color: oklch(35.7% 0.183 280.7);
Tailwind
colors: {
  custom: {
    50: '#7a5db7',
    500: '#341c97',
    950: '#000000',
  },
}
SCSS
$custom: #341c97;
$custom-light: #7a5db7;
$custom-dark: #000000;
JSON
{
  "hex": "#341c97",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 251.707,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35655,
    "c": 0.18319,
    "h": 280.7
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#341C97
secondary
#AAC14E
accent
#EC3CC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341C97

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

Preview Lab → · Contrast checker → · Palette generator →

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