#341F52#341F52

#341F52 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.090 H 299.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#341F52
RGBrgb(52, 31, 82)
HSLhsl(265, 45%, 22%)
HSVhsv(265, 62%, 32%)
CMYKcmyk(36.6%, 62.2%, 0%, 67.8%)
CIE-LABlab(17.08, 22.62, -27.59)
CIE-LCHlch(17.08, 35.68, 309.35°)
OKLaboklab(29.47% 0.0449 -0.0781)
OKLCHoklch(29.47% 0.09 299.9)
XYZxyz(3.4288, 2.3192, 8.2480)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F52 #3D521F
analogous
#1F2452 #341F52 #4E1F52
triadic
#341F52 #52341F #1F5234
tetradic
#341F52 #521F24 #3D521F #1F524E
square
#341F52 #521F24 #3D521F #1F524E
split-complementary
#341F52 #524E1F #24521F
monochromatic
#0E0816 #180E26 #341F52 #50307E #6C41AB

Accessibility & contrast

On white

14.35
#341F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341F52
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F52#FFFFFF#000000##FFFFFF
##341F521.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082A54
Deuteranopia (green-blind)
#102A51
Tritanopia (blue-blind)
#2E2935
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341f52;
/* rgb */ color: rgb(52, 31, 82);
/* oklch */ color: oklch(29.5% 0.090 299.9);
Tailwind
colors: {
  custom: {
    50: '#6e5b83',
    500: '#341f52',
    950: '#000000',
  },
}
SCSS
$custom: #341f52;
$custom-light: #6e5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#341f52",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 264.706,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29472,
    "c": 0.09009,
    "h": 299.9
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#341F52
secondary
#6C8746
accent
#D5539F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341F52

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

Preview Lab → · Contrast checker → · Palette generator →

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