#341795#341795

#341795 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.185 H 281.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#341795
RGBrgb(52, 23, 149)
HSLhsl(254, 73%, 34%)
HSVhsv(254, 85%, 58%)
CMYKcmyk(65.1%, 84.6%, 0%, 41.6%)
CIE-LABlab(21.99, 47.28, -62.78)
CIE-LCHlch(21.99, 78.60, 306.99°)
OKLaboklab(34.91% 0.037 -0.1811)
OKLCHoklch(34.91% 0.185 281.6)
XYZxyz(7.1457, 3.5122, 28.7293)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341795 #789517
analogous
#173995 #341795 #731795
triadic
#341795 #953417 #179534
tetradic
#341795 #951739 #789517 #179573
square
#341795 #951739 #789517 #179573
split-complementary
#341795 #957317 #399517
monochromatic
#0F072B #210F60 #341795 #471FCA #6944E2

Accessibility & contrast

On white

12.33
#341795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341795
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341795#FFFFFF#000000##FFFFFF
##3417951.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341795;
/* rgb */ color: rgb(52, 23, 149);
/* oklch */ color: oklch(34.9% 0.185 281.6);
Tailwind
colors: {
  custom: {
    50: '#7a5ab5',
    500: '#341795',
    950: '#000000',
  },
}
SCSS
$custom: #341795;
$custom-light: #7a5ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#341795",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 253.81,
    "s": 73.256,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.18489,
    "h": 281.6
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#341795
secondary
#A6C345
accent
#F038C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341795

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

Preview Lab → · Contrast checker → · Palette generator →

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