#341995#341995

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

Color values

HEX#341995
RGBrgb(52, 25, 149)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 58%)
CMYKcmyk(65.1%, 83.2%, 0%, 41.6%)
CIE-LABlab(22.28, 46.42, -62.29)
CIE-LCHlch(22.28, 77.68, 306.69°)
OKLaboklab(35.11% 0.0361 -0.1797)
OKLCHoklch(35.11% 0.183 281.3)
XYZxyz(7.1869, 3.5947, 28.7431)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341995 #7A9519
analogous
#193C95 #341995 #721995
triadic
#341995 #953419 #199534
tetradic
#341995 #95193C #7A9519 #199572
square
#341995 #95193C #7A9519 #199572
split-complementary
#341995 #957219 #3C9519
monochromatic
#0F072C #221061 #341995 #4622C9 #6948E0

Accessibility & contrast

On white

12.22
#341995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341995
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341995#FFFFFF#000000##FFFFFF
##3419951.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341995;
/* rgb */ color: rgb(52, 25, 149);
/* oklch */ color: oklch(35.1% 0.183 281.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bb5',
    500: '#341995',
    950: '#000000',
  },
}
SCSS
$custom: #341995;
$custom-light: #7a5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341995",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 253.065,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35108,
    "c": 0.18333,
    "h": 281.3
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#341995
secondary
#A7C248
accent
#EE3AC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341995

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

Preview Lab → · Contrast checker → · Palette generator →

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