#341F4E#341F4E

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

Color values

HEX#341F4E
RGBrgb(52, 31, 78)
HSLhsl(267, 43%, 21%)
HSVhsv(267, 60%, 31%)
CMYKcmyk(33.3%, 60.3%, 0%, 69.4%)
CIE-LABlab(16.80, 21.44, -25.33)
CIE-LCHlch(16.80, 33.18, 310.24°)
OKLaboklab(29.17% 0.0448 -0.0715)
OKLCHoklch(29.17% 0.084 302.1)
XYZxyz(3.2810, 2.2601, 7.4696)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F4E #394E1F
analogous
#1F224E #341F4E #4C1F4E
triadic
#341F4E #4E341F #1F4E34
tetradic
#341F4E #4E1F22 #394E1F #1F4E4C
square
#341F4E #4E1F22 #394E1F #1F4E4C
split-complementary
#341F4E #4E4C1F #224E1F
monochromatic
#0F0916 #170E22 #341F4E #51307A #6E42A6

Accessibility & contrast

On white

14.46
#341F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#341F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F4E
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F4E#FFFFFF#000000##FFFFFF
##341F4E1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2950
Deuteranopia (green-blind)
#14294D
Tritanopia (blue-blind)
#2F2833
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341f4e;
/* rgb */ color: rgb(52, 31, 78);
/* oklch */ color: oklch(29.2% 0.084 302.1);
Tailwind
colors: {
  custom: {
    50: '#6d5b80',
    500: '#341f4e',
    950: '#000000',
  },
}
SCSS
$custom: #341f4e;
$custom-light: #6d5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#341f4e",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 266.809,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.08434,
    "h": 302.1
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#341F4E
secondary
#688346
accent
#D3559B
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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