#341652#341652

#341652 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.105 H 303.1°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#341652
RGBrgb(52, 22, 82)
HSLhsl(270, 58%, 20%)
HSVhsv(270, 73%, 32%)
CMYKcmyk(36.6%, 73.2%, 0%, 67.8%)
CIE-LABlab(15.02, 28.16, -30.90)
CIE-LCHlch(15.02, 41.80, 312.34°)
OKLaboklab(27.98% 0.0573 -0.0878)
OKLCHoklch(27.98% 0.105 303.1)
XYZxyz(3.2257, 1.9131, 8.1803)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341652 #345216
analogous
#161652 #341652 #521652
triadic
#341652 #523416 #165234
tetradic
#341652 #521616 #345216 #165252
square
#341652 #521616 #345216 #165252
split-complementary
#341652 #525216 #165216
monochromatic
#0F0618 #150922 #341652 #532382 #7130B3

Accessibility & contrast

On white

15.19
#341652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341652
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341652#FFFFFF#000000##FFFFFF
##3416521.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#012651
Tritanopia (blue-blind)
#2E2432
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #341652;
/* rgb */ color: rgb(52, 22, 82);
/* oklch */ color: oklch(28.0% 0.105 303.1);
Tailwind
colors: {
  custom: {
    50: '#6f5683',
    500: '#341652',
    950: '#000000',
  },
}
SCSS
$custom: #341652;
$custom-light: #6f5683;
$custom-dark: #000000;
JSON
{
  "hex": "#341652",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 270,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27979,
    "c": 0.10487,
    "h": 303.1
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#341652
secondary
#62893A
accent
#E14794
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341652

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

Preview Lab → · Contrast checker → · Palette generator →

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