#341E4F#341E4F

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

Color values

HEX#341E4F
RGBrgb(52, 30, 79)
HSLhsl(267, 45%, 21%)
HSVhsv(267, 62%, 31%)
CMYKcmyk(34.2%, 62%, 0%, 69%)
CIE-LABlab(16.62, 22.38, -26.30)
CIE-LCHlch(16.62, 34.53, 310.40°)
OKLaboklab(29.06% 0.0463 -0.0743)
OKLCHoklch(29.06% 0.088 301.9)
XYZxyz(3.2914, 2.2231, 7.6513)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E4F #394F1E
analogous
#1E214F #341E4F #4D1E4F
triadic
#341E4F #4F341E #1E4F34
tetradic
#341E4F #4F1E21 #394F1E #1E4F4D
square
#341E4F #4F1E21 #394F1E #1E4F4D
split-complementary
#341E4F #4F4D1E #214F1E
monochromatic
#0F0816 #170D23 #341E4F #512F7B #6E40A8

Accessibility & contrast

On white

14.54
#341E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#341E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E4F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E4F#FFFFFF#000000##FFFFFF
##341E4F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092951
Deuteranopia (green-blind)
#12294E
Tritanopia (blue-blind)
#2F2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341e4f;
/* rgb */ color: rgb(52, 30, 79);
/* oklch */ color: oklch(29.1% 0.088 301.9);
Tailwind
colors: {
  custom: {
    50: '#6e5b81',
    500: '#341e4f',
    950: '#000000',
  },
}
SCSS
$custom: #341e4f;
$custom-light: #6e5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#341e4f",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 266.939,
    "s": 44.954,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29063,
    "c": 0.08758,
    "h": 301.9
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#341E4F
secondary
#688445
accent
#D5539B
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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