#341F4F#341F4F

#341F4F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.086 H 301.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#341F4F
RGBrgb(52, 31, 79)
HSLhsl(266, 44%, 22%)
HSVhsv(266, 61%, 31%)
CMYKcmyk(34.2%, 60.8%, 0%, 69%)
CIE-LABlab(16.87, 21.73, -25.90)
CIE-LCHlch(16.87, 33.81, 310.00°)
OKLaboklab(29.25% 0.0448 -0.0732)
OKLCHoklch(29.25% 0.086 301.5)
XYZxyz(3.3171, 2.2745, 7.6599)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F4F #3A4F1F
analogous
#1F224F #341F4F #4C1F4F
triadic
#341F4F #4F341F #1F4F34
tetradic
#341F4F #4F1F22 #3A4F1F #1F4F4C
square
#341F4F #4F1F22 #3A4F1F #1F4F4C
split-complementary
#341F4F #4F4C1F #224F1F
monochromatic
#0E0916 #170E23 #341F4F #51307B #6E41A7

Accessibility & contrast

On white

14.43
#341F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#341F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F4F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F4F#FFFFFF#000000##FFFFFF
##341F4F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2951
Deuteranopia (green-blind)
#13294E
Tritanopia (blue-blind)
#2F2833
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341f4f;
/* rgb */ color: rgb(52, 31, 79);
/* oklch */ color: oklch(29.2% 0.086 301.5);
Tailwind
colors: {
  custom: {
    50: '#6d5b81',
    500: '#341f4f',
    950: '#000000',
  },
}
SCSS
$custom: #341f4f;
$custom-light: #6d5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#341f4f",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 266.25,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29247,
    "c": 0.08579,
    "h": 301.5
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#341F4F
secondary
#698446
accent
#D3549C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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