#341F5C#341F5C

#341F5C is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.104 H 295.3°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#341F5C
RGBrgb(52, 31, 92)
HSLhsl(261, 50%, 24%)
HSVhsv(261, 66%, 36%)
CMYKcmyk(43.5%, 66.3%, 0%, 63.9%)
CIE-LABlab(17.84, 25.67, -33.08)
CIE-LCHlch(17.84, 41.87, 307.81°)
OKLaboklab(30.27% 0.0446 -0.0942)
OKLCHoklch(30.27% 0.104 295.3)
XYZxyz(3.8374, 2.4827, 10.4002)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F5C #475C1F
analogous
#1F295C #341F5C #531F5C
triadic
#341F5C #5C341F #1F5C34
tetradic
#341F5C #5C1F29 #475C1F #1F5C53
square
#341F5C #5C1F29 #475C1F #1F5C53
split-complementary
#341F5C #5C531F #295C1F
monochromatic
#0D0817 #1A102E #341F5C #4E2E8A #683EB8

Accessibility & contrast

On white

14.03
#341F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#341F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F5C
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F5C#FFFFFF#000000##FFFFFF
##341F5C1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#2A2D3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #341f5c;
/* rgb */ color: rgb(52, 31, 92);
/* oklch */ color: oklch(30.3% 0.104 295.3);
Tailwind
colors: {
  custom: {
    50: '#6f5c8b',
    500: '#341f5c',
    950: '#000000',
  },
}
SCSS
$custom: #341f5c;
$custom-light: #6f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#341f5c",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 260.656,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.3027,
    "c": 0.10427,
    "h": 295.3
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#341F5C
secondary
#779146
accent
#D94FA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #341F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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