#341C7E#341C7E

#341C7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.153 H 285.7°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#341C7E
RGBrgb(52, 28, 126)
HSLhsl(255, 64%, 30%)
HSVhsv(255, 78%, 49%)
CMYKcmyk(58.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(20.31, 38.01, -51.15)
CIE-LCHlch(20.31, 63.73, 306.62°)
OKLaboklab(32.99% 0.0413 -0.1473)
OKLCHoklch(32.99% 0.153 285.7)
XYZxyz(5.5962, 3.0666, 20.0316)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C7E #667E1C
analogous
#1C357E #341C7E #651C7E
triadic
#341C7E #7E341C #1C7E34
tetradic
#341C7E #7E1C35 #667E1C #1C7E65
square
#341C7E #7E1C35 #667E1C #1C7E65
split-complementary
#341C7E #7E651C #357E1C
monochromatic
#0B061A #1F114C #341C7E #4927B0 #6440D5

Accessibility & contrast

On white

13.02
#341C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C7E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C7E#FFFFFF#000000##FFFFFF
##341C7E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#0F384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341c7e;
/* rgb */ color: rgb(52, 28, 126);
/* oklch */ color: oklch(33.0% 0.153 285.7);
Tailwind
colors: {
  custom: {
    50: '#755ba4',
    500: '#341c7e',
    950: '#000000',
  },
}
SCSS
$custom: #341c7e;
$custom-light: #755ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#341c7e",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 254.694,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32994,
    "c": 0.15296,
    "h": 285.7
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#341C7E
secondary
#97B244
accent
#E741BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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