#341C8A#341C8A

#341C8A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 283.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#341C8A
RGBrgb(52, 28, 138)
HSLhsl(253, 66%, 33%)
HSVhsv(253, 80%, 54%)
CMYKcmyk(62.3%, 79.7%, 0%, 45.9%)
CIE-LABlab(21.56, 41.70, -56.65)
CIE-LCHlch(21.56, 70.34, 306.36°)
OKLaboklab(34.25% 0.0379 -0.1633)
OKLCHoklch(34.25% 0.168 283)
XYZxyz(6.4175, 3.3951, 24.3570)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8A #728A1C
analogous
#1C3B8A #341C8A #6B1C8A
triadic
#341C8A #8A341C #1C8A34
tetradic
#341C8A #8A1C3B #728A1C #1C8A6B
square
#341C8A #8A1C3B #728A1C #1C8A6B
split-complementary
#341C8A #8A6B1C #3B8A1C
monochromatic
#0E0724 #211257 #341C8A #4726BD #6747DA

Accessibility & contrast

On white

12.51
#341C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#341C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C8A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8A#FFFFFF#000000##FFFFFF
##341C8A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341c8a;
/* rgb */ color: rgb(52, 28, 138);
/* oklch */ color: oklch(34.2% 0.168 283.0);
Tailwind
colors: {
  custom: {
    50: '#775cad',
    500: '#341c8a',
    950: '#000000',
  },
}
SCSS
$custom: #341c8a;
$custom-light: #775cad;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8a",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 253.091,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34248,
    "c": 0.16767,
    "h": 283
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#341C8A
secondary
#A2BB46
accent
#E93FC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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