#341C8B#341C8B

#341C8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.169 H 282.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#341C8B
RGBrgb(52, 28, 139)
HSLhsl(253, 66%, 33%)
HSVhsv(253, 80%, 55%)
CMYKcmyk(62.6%, 79.9%, 0%, 45.5%)
CIE-LABlab(21.67, 42.00, -57.10)
CIE-LCHlch(21.67, 70.88, 306.34°)
OKLaboklab(34.35% 0.0376 -0.1646)
OKLCHoklch(34.35% 0.169 282.9)
XYZxyz(6.4902, 3.4242, 24.7400)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8B #738B1C
analogous
#1C3B8B #341C8B #6B1C8B
triadic
#341C8B #8B341C #1C8B34
tetradic
#341C8B #8B1C3B #738B1C #1C8B6B
square
#341C8B #8B1C3B #738B1C #1C8B6B
split-complementary
#341C8B #8B6B1C #3B8B1C
monochromatic
#0E0725 #211258 #341C8B #4726BE #6747DA

Accessibility & contrast

On white

12.46
#341C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C8B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8B#FFFFFF#000000##FFFFFF
##341C8B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341c8b;
/* rgb */ color: rgb(52, 28, 139);
/* oklch */ color: oklch(34.4% 0.169 282.9);
Tailwind
colors: {
  custom: {
    50: '#775cae',
    500: '#341c8b',
    950: '#000000',
  },
}
SCSS
$custom: #341c8b;
$custom-light: #775cae;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8b",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 252.973,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34354,
    "c": 0.16888,
    "h": 282.9
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#341C8B
secondary
#A3BC47
accent
#E93EC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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