#341D4D#341D4D

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

Color values

HEX#341D4D
RGBrgb(52, 29, 77)
HSLhsl(269, 45%, 21%)
HSVhsv(269, 62%, 30%)
CMYKcmyk(32.5%, 62.3%, 0%, 69.8%)
CIE-LABlab(16.23, 22.45, -25.55)
CIE-LCHlch(16.23, 34.01, 311.30°)
OKLaboklab(28.73% 0.0478 -0.0721)
OKLCHoklch(28.73% 0.087 303.5)
XYZxyz(3.1948, 2.1446, 7.2654)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D4D #364D1D
analogous
#1D1E4D #341D4D #4C1D4D
triadic
#341D4D #4D341D #1D4D34
tetradic
#341D4D #4D1D1E #364D1D #1D4D4C
square
#341D4D #4D1D1E #364D1D #1D4D4C
split-complementary
#341D4D #4D4C1D #1E4D1D
monochromatic
#0F0816 #160C21 #341D4D #522E79 #703EA6

Accessibility & contrast

On white

14.70
#341D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D4D
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D4D#FFFFFF#000000##FFFFFF
##341D4D1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A284F
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#2F2631
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341d4d;
/* rgb */ color: rgb(52, 29, 77);
/* oklch */ color: oklch(28.7% 0.087 303.5);
Tailwind
colors: {
  custom: {
    50: '#6d5a7f',
    500: '#341d4d',
    950: '#000000',
  },
}
SCSS
$custom: #341d4d;
$custom-light: #6d5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#341d4d",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 268.75,
    "s": 45.283,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28732,
    "c": 0.08653,
    "h": 303.5
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#341D4D
secondary
#648244
accent
#D55397
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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