#341E4B#341E4B

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

Color values

HEX#341E4B
RGBrgb(52, 30, 75)
HSLhsl(269, 43%, 21%)
HSVhsv(269, 60%, 29%)
CMYKcmyk(30.7%, 60%, 0%, 70.6%)
CIE-LABlab(16.34, 21.22, -24.01)
CIE-LCHlch(16.34, 32.04, 311.47°)
OKLaboklab(28.77% 0.0461 -0.0676)
OKLCHoklch(28.77% 0.082 304.3)
XYZxyz(3.1502, 2.1666, 6.9075)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E4B #354B1E
analogous
#1E1E4B #341E4B #4A1E4B
triadic
#341E4B #4B341E #1E4B34
tetradic
#341E4B #4B1E1E #354B1E #1E4B4A
square
#341E4B #4B1E1E #354B1E #1E4B4A
split-complementary
#341E4B #4B4A1E #1E4B1E
monochromatic
#0F0916 #160D1F #341E4B #522F77 #7141A2

Accessibility & contrast

On white

14.65
#341E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341E4B
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E4B#FFFFFF#000000##FFFFFF
##341E4B1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E284D
Deuteranopia (green-blind)
#15284A
Tritanopia (blue-blind)
#302631
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341e4b;
/* rgb */ color: rgb(52, 30, 75);
/* oklch */ color: oklch(28.8% 0.082 304.3);
Tailwind
colors: {
  custom: {
    50: '#6d5a7d',
    500: '#341e4b',
    950: '#000000',
  },
}
SCSS
$custom: #341e4b;
$custom-light: #6d5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#341e4b",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 75
  },
  "hsl": {
    "h": 269.333,
    "s": 42.857,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28768,
    "c": 0.08187,
    "h": 304.3
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#341E4B
secondary
#638045
accent
#D35595
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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