#341247#341247

#341247 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.097 H 310.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#341247
RGBrgb(52, 18, 71)
HSLhsl(278, 60%, 17%)
HSVhsv(278, 75%, 28%)
CMYKcmyk(26.8%, 74.6%, 0%, 72.2%)
CIE-LABlab(13.34, 27.41, -26.06)
CIE-LCHlch(13.34, 37.82, 316.45°)
OKLaboklab(26.49% 0.0638 -0.0736)
OKLCHoklch(26.49% 0.097 310.9)
XYZxyz(2.7696, 1.6177, 6.1264)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341247 #254712
analogous
#1A1247 #341247 #47123F
triadic
#341247 #473412 #124734
tetradic
#341247 #471A12 #254712 #123F47
square
#341247 #471A12 #254712 #123F47
split-complementary
#341247 #3F4712 #12471A
monochromatic
#120618 #120618 #341247 #581E78 #7C2BA9

Accessibility & contrast

On white

15.87
#341247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#341247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341247
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341247#FFFFFF#000000##FFFFFF
##3412471.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#0B2346
Tritanopia (blue-blind)
#321D2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #341247;
/* rgb */ color: rgb(52, 18, 71);
/* oklch */ color: oklch(26.5% 0.097 310.9);
Tailwind
colors: {
  custom: {
    50: '#6e537a',
    500: '#341247',
    950: '#000000',
  },
}
SCSS
$custom: #341247;
$custom-light: #6e537a;
$custom-dark: #000000;
JSON
{
  "hex": "#341247",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 278.491,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26489,
    "c": 0.09739,
    "h": 310.9
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#341247
secondary
#508035
accent
#E3457E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #341247

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

Preview Lab → · Contrast checker → · Palette generator →

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