#341B4A#341B4A

#341B4A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.086 H 306.2°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#341B4A
RGBrgb(52, 27, 74)
HSLhsl(272, 47%, 20%)
HSVhsv(272, 64%, 29%)
CMYKcmyk(29.7%, 63.5%, 0%, 71%)
CIE-LABlab(15.53, 22.87, -24.61)
CIE-LCHlch(15.53, 33.60, 312.90°)
OKLaboklab(28.15% 0.0508 -0.0694)
OKLCHoklch(28.15% 0.086 306.2)
XYZxyz(3.0439, 2.0084, 6.7045)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B4A #314A1B
analogous
#1D1B4A #341B4A #4A1B49
triadic
#341B4A #4A341B #1B4A34
tetradic
#341B4A #4A1D1B #314A1B #1B494A
square
#341B4A #4A1D1B #314A1B #1B494A
split-complementary
#341B4A #494A1B #1B4A1D
monochromatic
#100816 #140B1D #341B4A #542B77 #733CA4

Accessibility & contrast

On white

14.98
#341B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B4A
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B4A#FFFFFF#000000##FFFFFF
##341B4A1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09264C
Deuteranopia (green-blind)
#132749
Tritanopia (blue-blind)
#30242F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341b4a;
/* rgb */ color: rgb(52, 27, 74);
/* oklch */ color: oklch(28.2% 0.086 306.2);
Tailwind
colors: {
  custom: {
    50: '#6d587d',
    500: '#341b4a',
    950: '#000000',
  },
}
SCSS
$custom: #341b4a;
$custom-light: #6d587d;
$custom-dark: #000000;
JSON
{
  "hex": "#341b4a",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 271.915,
    "s": 46.535,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28152,
    "c": 0.08596,
    "h": 306.2
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#341B4A
secondary
#5E8041
accent
#D65290
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #341B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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