#341D4E#341D4E

#341D4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.088 H 302.9°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#341D4E
RGBrgb(52, 29, 78)
HSLhsl(268, 46%, 21%)
HSVhsv(268, 63%, 31%)
CMYKcmyk(33.3%, 62.8%, 0%, 69.4%)
CIE-LABlab(16.30, 22.74, -26.12)
CIE-LCHlch(16.30, 34.63, 311.04°)
OKLaboklab(28.81% 0.0478 -0.0738)
OKLCHoklch(28.81% 0.088 302.9)
XYZxyz(3.2304, 2.1589, 7.4528)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D4E #374E1D
analogous
#1D1E4E #341D4E #4C1D4E
triadic
#341D4E #4E341D #1D4E34
tetradic
#341D4E #4E1D1E #374E1D #1D4E4C
square
#341D4E #4E1D1E #374E1D #1D4E4C
split-complementary
#341D4E #4E4C1D #1E4E1D
monochromatic
#0F0816 #160C21 #341D4E #522E7B #6F3EA7

Accessibility & contrast

On white

14.67
#341D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D4E
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D4E#FFFFFF#000000##FFFFFF
##341D4E1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082850
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#2F2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341d4e;
/* rgb */ color: rgb(52, 29, 78);
/* oklch */ color: oklch(28.8% 0.088 302.9);
Tailwind
colors: {
  custom: {
    50: '#6d5a80',
    500: '#341d4e',
    950: '#000000',
  },
}
SCSS
$custom: #341d4e;
$custom-light: #6d5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#341d4e",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 268.163,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28807,
    "c": 0.08794,
    "h": 302.9
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#341D4E
secondary
#658344
accent
#D55298
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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