#341996#341996

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

Color values

HEX#341996
RGBrgb(52, 25, 150)
HSLhsl(253, 71%, 34%)
HSVhsv(253, 83%, 59%)
CMYKcmyk(65.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.40, 46.71, -62.72)
CIE-LCHlch(22.40, 78.20, 306.68°)
OKLaboklab(35.22% 0.0357 -0.181)
OKLCHoklch(35.22% 0.184 281.2)
XYZxyz(7.2671, 3.6268, 29.1653)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341996 #7B9619
analogous
#193D96 #341996 #731996
triadic
#341996 #963419 #199634
tetradic
#341996 #96193D #7B9619 #199673
square
#341996 #96193D #7B9619 #199673
split-complementary
#341996 #967319 #3D9619
monochromatic
#10082D #221062 #341996 #4622CA #6A49E1

Accessibility & contrast

On white

12.17
#341996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341996
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341996#FFFFFF#000000##FFFFFF
##3419961.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341996;
/* rgb */ color: rgb(52, 25, 150);
/* oklch */ color: oklch(35.2% 0.184 281.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bb6',
    500: '#341996',
    950: '#000000',
  },
}
SCSS
$custom: #341996;
$custom-light: #7a5bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#341996",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 252.96,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35219,
    "c": 0.18449,
    "h": 281.2
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#341996
secondary
#A8C249
accent
#EE3AC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341996

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

Preview Lab → · Contrast checker → · Palette generator →

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