#341B4E#341B4E

#341B4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.091 H 303.7°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#341B4E
RGBrgb(52, 27, 78)
HSLhsl(269, 49%, 21%)
HSVhsv(269, 65%, 31%)
CMYKcmyk(33.3%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.82, 24.01, -26.89)
CIE-LCHlch(15.82, 36.05, 311.76°)
OKLaboklab(28.46% 0.0508 -0.0761)
OKLCHoklch(28.46% 0.091 303.7)
XYZxyz(3.1829, 2.0640, 7.4370)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B4E #354E1B
analogous
#1B1B4E #341B4E #4D1B4E
triadic
#341B4E #4E341B #1B4E34
tetradic
#341B4E #4E1B1B #354E1B #1B4E4D
square
#341B4E #4E1B1B #354E1B #1B4E4D
split-complementary
#341B4E #4E4D1B #1B4E1B
monochromatic
#0F0817 #160B21 #341B4E #522B7B #713AA9

Accessibility & contrast

On white

14.86
#341B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#341B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B4E
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B4E#FFFFFF#000000##FFFFFF
##341B4E1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#0F274D
Tritanopia (blue-blind)
#2F2531
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341b4e;
/* rgb */ color: rgb(52, 27, 78);
/* oklch */ color: oklch(28.5% 0.091 303.7);
Tailwind
colors: {
  custom: {
    50: '#6e5980',
    500: '#341b4e',
    950: '#000000',
  },
}
SCSS
$custom: #341b4e;
$custom-light: #6e5980;
$custom-dark: #000000;
JSON
{
  "hex": "#341b4e",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 269.412,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28456,
    "c": 0.09145,
    "h": 303.7
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#341B4E
secondary
#638441
accent
#D85095
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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