#341896#341896

#341896 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.185 H 281.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#341896
RGBrgb(52, 24, 150)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 59%)
CMYKcmyk(65.3%, 84%, 0%, 41.2%)
CIE-LABlab(22.25, 47.15, -62.97)
CIE-LCHlch(22.25, 78.66, 306.82°)
OKLaboklab(35.12% 0.0362 -0.1817)
OKLCHoklch(35.12% 0.185 281.3)
XYZxyz(7.2461, 3.5848, 29.1583)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341896 #7A9618
analogous
#183B96 #341896 #731896
triadic
#341896 #963418 #189634
tetradic
#341896 #96183B #7A9618 #189673
square
#341896 #96183B #7A9618 #189673
split-complementary
#341896 #967318 #3B9618
monochromatic
#0F072C #221061 #341896 #4620CB #6947E2

Accessibility & contrast

On white

12.23
#341896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#341896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341896
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341896#FFFFFF#000000##FFFFFF
##3418961.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341896;
/* rgb */ color: rgb(52, 24, 150);
/* oklch */ color: oklch(35.1% 0.185 281.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bb6',
    500: '#341896',
    950: '#000000',
  },
}
SCSS
$custom: #341896;
$custom-light: #7a5bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#341896",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 150
  },
  "hsl": {
    "h": 253.333,
    "s": 72.414,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35117,
    "c": 0.18527,
    "h": 281.3
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#341896
secondary
#A7C347
accent
#EF39C7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341896

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

Preview Lab → · Contrast checker → · Palette generator →

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