#341C9C#341C9C

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

Color values

HEX#341C9C
RGBrgb(52, 28, 156)
HSLhsl(251, 70%, 36%)
HSVhsv(251, 82%, 61%)
CMYKcmyk(66.7%, 82.1%, 0%, 38.8%)
CIE-LABlab(23.54, 47.13, -64.52)
CIE-LCHlch(23.54, 79.90, 306.15°)
OKLaboklab(36.21% 0.0323 -0.1863)
OKLCHoklch(36.21% 0.189 279.8)
XYZxyz(7.8303, 3.9602, 31.7978)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C9C #849C1C
analogous
#1C449C #341C9C #741C9C
triadic
#341C9C #9C341C #1C9C34
tetradic
#341C9C #9C1C44 #849C1C #1C9C74
square
#341C9C #9C1C44 #849C1C #1C9C74
split-complementary
#341C9C #9C741C #449C1C
monochromatic
#110934 #231368 #341C9C #4525D0 #6D52E0

Accessibility & contrast

On white

11.72
#341C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#341C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C9C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C9C#FFFFFF#000000##FFFFFF
##341C9C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341c9c;
/* rgb */ color: rgb(52, 28, 156);
/* oklch */ color: oklch(36.2% 0.189 279.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dbb',
    500: '#341c9c',
    950: '#000000',
  },
}
SCSS
$custom: #341c9c;
$custom-light: #7b5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#341c9c",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 156
  },
  "hsl": {
    "h": 251.25,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36208,
    "c": 0.18905,
    "h": 279.8
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#341C9C
secondary
#AEC351
accent
#EC3BCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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