#341D4C#341D4C

#341D4C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.085 H 304.1°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#341D4C
RGBrgb(52, 29, 76)
HSLhsl(269, 45%, 21%)
HSVhsv(269, 62%, 30%)
CMYKcmyk(31.6%, 61.8%, 0%, 70.2%)
CIE-LABlab(16.16, 22.16, -24.98)
CIE-LCHlch(16.16, 33.39, 311.57°)
OKLaboklab(28.66% 0.0478 -0.0705)
OKLCHoklch(28.66% 0.085 304.1)
XYZxyz(3.1598, 2.1306, 7.0809)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D4C #354C1D
analogous
#1D1D4C #341D4C #4B1D4C
triadic
#341D4C #4C341D #1D4C34
tetradic
#341D4C #4C1D1D #354C1D #1D4C4B
square
#341D4C #4C1D1D #354C1D #1D4C4B
split-complementary
#341D4C #4C4B1D #1D4C1D
monochromatic
#0F0816 #160C20 #341D4C #522E78 #713FA5

Accessibility & contrast

On white

14.72
#341D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#341D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D4C
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D4C#FFFFFF#000000##FFFFFF
##341D4C1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B284E
Deuteranopia (green-blind)
#13284B
Tritanopia (blue-blind)
#302631
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341d4c;
/* rgb */ color: rgb(52, 29, 76);
/* oklch */ color: oklch(28.7% 0.085 304.1);
Tailwind
colors: {
  custom: {
    50: '#6d5a7e',
    500: '#341d4c',
    950: '#000000',
  },
}
SCSS
$custom: #341d4c;
$custom-light: #6d5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#341d4c",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 269.362,
    "s": 44.762,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28657,
    "c": 0.08512,
    "h": 304.1
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#341D4C
secondary
#638144
accent
#D45395
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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