#341D4B#341D4B

#341D4B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.084 H 304.7°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#341D4B
RGBrgb(52, 29, 75)
HSLhsl(270, 44%, 20%)
HSVhsv(270, 61%, 29%)
CMYKcmyk(30.7%, 61.3%, 0%, 70.6%)
CIE-LABlab(16.09, 21.87, -24.41)
CIE-LCHlch(16.09, 32.77, 311.86°)
OKLaboklab(28.58% 0.0477 -0.0688)
OKLCHoklch(28.58% 0.084 304.7)
XYZxyz(3.1253, 2.1168, 6.8992)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D4B #344B1D
analogous
#1D1D4B #341D4B #4B1D4B
triadic
#341D4B #4B341D #1D4B34
tetradic
#341D4B #4B1D1D #344B1D #1D4B4B
square
#341D4B #4B1D1D #344B1D #1D4B4B
split-complementary
#341D4B #4B4B1D #1D4B1D
monochromatic
#0F0916 #150C1F #341D4B #532E77 #713FA3

Accessibility & contrast

On white

14.75
#341D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D4B
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D4B#FFFFFF#000000##FFFFFF
##341D4B1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C274D
Deuteranopia (green-blind)
#14284A
Tritanopia (blue-blind)
#302630
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341d4b;
/* rgb */ color: rgb(52, 29, 75);
/* oklch */ color: oklch(28.6% 0.084 304.7);
Tailwind
colors: {
  custom: {
    50: '#6d5a7d',
    500: '#341d4b',
    950: '#000000',
  },
}
SCSS
$custom: #341d4b;
$custom-light: #6d5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#341d4b",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 270,
    "s": 44.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28584,
    "c": 0.08371,
    "h": 304.7
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#341D4B
secondary
#628044
accent
#D45494
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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