#341F57#341F57

#341F57 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.097 H 297.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#341F57
RGBrgb(52, 31, 87)
HSLhsl(263, 47%, 23%)
HSVhsv(263, 64%, 34%)
CMYKcmyk(40.2%, 64.4%, 0%, 65.9%)
CIE-LABlab(17.45, 24.13, -30.36)
CIE-LCHlch(17.45, 38.78, 308.48°)
OKLaboklab(29.86% 0.0449 -0.0863)
OKLCHoklch(29.86% 0.097 297.5)
XYZxyz(3.6260, 2.3981, 9.2868)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F57 #42571F
analogous
#1F2657 #341F57 #501F57
triadic
#341F57 #57341F #1F5734
tetradic
#341F57 #571F26 #42571F #1F5750
square
#341F57 #571F26 #42571F #1F5750
split-complementary
#341F57 #57501F #26571F
monochromatic
#0D0817 #190F2A #341F57 #4F2F84 #6A3FB1

Accessibility & contrast

On white

14.19
#341F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F57
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F57#FFFFFF#000000##FFFFFF
##341F571.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#092A56
Tritanopia (blue-blind)
#2C2B37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341f57;
/* rgb */ color: rgb(52, 31, 87);
/* oklch */ color: oklch(29.9% 0.097 297.5);
Tailwind
colors: {
  custom: {
    50: '#6e5b87',
    500: '#341f57',
    950: '#000000',
  },
}
SCSS
$custom: #341f57;
$custom-light: #6e5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#341f57",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 262.5,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29863,
    "c": 0.09722,
    "h": 297.5
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#341F57
secondary
#728C46
accent
#D751A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #341F57

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

Preview Lab → · Contrast checker → · Palette generator →

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