#341552#341552

#341552 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.106 H 303.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#341552
RGBrgb(52, 21, 82)
HSLhsl(270, 59%, 20%)
HSVhsv(270, 74%, 32%)
CMYKcmyk(36.6%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.82, 28.72, -31.23)
CIE-LCHlch(14.82, 42.43, 312.60°)
OKLaboklab(27.83% 0.0586 -0.0888)
OKLCHoklch(27.83% 0.106 303.4)
XYZxyz(3.2070, 1.8756, 8.1741)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341552 #335215
analogous
#161552 #341552 #521551
triadic
#341552 #523415 #155234
tetradic
#341552 #521615 #335215 #155152
square
#341552 #521615 #335215 #155152
split-complementary
#341552 #515215 #155216
monochromatic
#0F0618 #150921 #341552 #532183 #722EB3

Accessibility & contrast

On white

15.27
#341552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#341552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341552
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341552#FFFFFF#000000##FFFFFF
##3415521.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#2E2331
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #341552;
/* rgb */ color: rgb(52, 21, 82);
/* oklch */ color: oklch(27.8% 0.106 303.4);
Tailwind
colors: {
  custom: {
    50: '#6f5583',
    500: '#341552',
    950: '#000000',
  },
}
SCSS
$custom: #341552;
$custom-light: #6f5583;
$custom-dark: #000000;
JSON
{
  "hex": "#341552",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 270.492,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27833,
    "c": 0.10636,
    "h": 303.4
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#341552
secondary
#618A39
accent
#E24593
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341552

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

Preview Lab → · Contrast checker → · Palette generator →

#341552 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva