#341895#341895

#341895 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 281.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#341895
RGBrgb(52, 24, 149)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(65.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.13, 46.86, -62.54)
CIE-LCHlch(22.13, 78.15, 306.84°)
OKLaboklab(35% 0.0366 -0.1805)
OKLCHoklch(35% 0.184 281.5)
XYZxyz(7.1659, 3.5527, 28.7361)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341895 #799518
analogous
#183B95 #341895 #731895
triadic
#341895 #953418 #189534
tetradic
#341895 #95183B #799518 #189573
square
#341895 #95183B #799518 #189573
split-complementary
#341895 #957318 #3B9518
monochromatic
#0F072C #221060 #341895 #4620CA #6946E1

Accessibility & contrast

On white

12.28
#341895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#341895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341895
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341895#FFFFFF#000000##FFFFFF
##3418951.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.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: #341895;
/* rgb */ color: rgb(52, 24, 149);
/* oklch */ color: oklch(35.0% 0.184 281.5);
Tailwind
colors: {
  custom: {
    50: '#7a5bb5',
    500: '#341895',
    950: '#000000',
  },
}
SCSS
$custom: #341895;
$custom-light: #7a5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341895",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 253.44,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.18413,
    "h": 281.5
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#341895
secondary
#A7C246
accent
#EF39C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341895

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

Preview Lab → · Contrast checker → · Palette generator →

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