#341261#341261

#341261 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.129 H 297.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#341261
RGBrgb(52, 18, 97)
HSLhsl(266, 69%, 23%)
HSVhsv(266, 81%, 38%)
CMYKcmyk(46.4%, 81.4%, 0%, 62%)
CIE-LABlab(15.62, 34.51, -40.01)
CIE-LCHlch(15.62, 52.84, 310.78°)
OKLaboklab(28.82% 0.0584 -0.1146)
OKLCHoklch(28.82% 0.129 297)
XYZxyz(3.7896, 2.0257, 11.4983)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341261 #3F6112
analogous
#121761 #341261 #5C1261
triadic
#341261 #613412 #126134
tetradic
#341261 #611217 #3F6112 #12615C
square
#341261 #611217 #3F6112 #12615C
split-complementary
#341261 #615C12 #176112
monochromatic
#0E051A #18082D #341261 #501C95 #6B25C8

Accessibility & contrast

On white

14.94
#341261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#341261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341261
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341261#FFFFFF#000000##FFFFFF
##3412611.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#282739
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341261;
/* rgb */ color: rgb(52, 18, 97);
/* oklch */ color: oklch(28.8% 0.129 297.0);
Tailwind
colors: {
  custom: {
    50: '#71548f',
    500: '#341261',
    950: '#000000',
  },
}
SCSS
$custom: #341261;
$custom-light: #71548f;
$custom-dark: #000000;
JSON
{
  "hex": "#341261",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 265.823,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28822,
    "c": 0.12858,
    "h": 297
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#341261
secondary
#6E9936
accent
#EC3CA0
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341261

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

Preview Lab → · Contrast checker → · Palette generator →

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