#341D7E#341D7E

#341D7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.152 H 285.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#341D7E
RGBrgb(52, 29, 126)
HSLhsl(254, 63%, 30%)
HSVhsv(254, 77%, 49%)
CMYKcmyk(58.7%, 77%, 0%, 50.6%)
CIE-LABlab(20.50, 37.48, -50.84)
CIE-LCHlch(20.50, 63.16, 306.40°)
OKLaboklab(33.13% 0.0405 -0.1464)
OKLCHoklch(33.13% 0.152 285.5)
XYZxyz(5.6203, 3.1148, 20.0397)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D7E #677E1D
analogous
#1D367E #341D7E #641D7E
triadic
#341D7E #7E341D #1D7E34
tetradic
#341D7E #7E1D36 #677E1D #1D7E64
square
#341D7E #7E1D36 #677E1D #1D7E64
split-complementary
#341D7E #7E641D #367E1D
monochromatic
#0B061B #1F124C #341D7E #4928B0 #6442D3

Accessibility & contrast

On white

12.94
#341D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D7E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D7E#FFFFFF#000000##FFFFFF
##341D7E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.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: #341d7e;
/* rgb */ color: rgb(52, 29, 126);
/* oklch */ color: oklch(33.1% 0.152 285.5);
Tailwind
colors: {
  custom: {
    50: '#755ca4',
    500: '#341d7e',
    950: '#000000',
  },
}
SCSS
$custom: #341d7e;
$custom-light: #755ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#341d7e",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 254.227,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33127,
    "c": 0.15188,
    "h": 285.5
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#341D7E
secondary
#98B145
accent
#E642BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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