#341C94#341C94

#341C94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.180 H 281.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#341C94
RGBrgb(52, 28, 148)
HSLhsl(252, 68%, 35%)
HSVhsv(252, 81%, 58%)
CMYKcmyk(64.9%, 81.1%, 0%, 42%)
CIE-LABlab(22.65, 44.73, -61.07)
CIE-LCHlch(22.65, 75.70, 306.22°)
OKLaboklab(35.33% 0.0348 -0.1762)
OKLCHoklch(35.33% 0.18 281.2)
XYZxyz(7.1750, 3.6981, 28.3469)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C94 #7C941C
analogous
#1C4094 #341C94 #701C94
triadic
#341C94 #94341C #1C9434
tetradic
#341C94 #941C40 #7C941C #1C9470
square
#341C94 #941C40 #7C941C #1C9470
split-complementary
#341C94 #94701C #40941C
monochromatic
#10092D #221261 #341C94 #4626C7 #6A4DDD

Accessibility & contrast

On white

12.07
#341C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#341C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C94
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C94#FFFFFF#000000##FFFFFF
##341C941.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341c94;
/* rgb */ color: rgb(52, 28, 148);
/* oklch */ color: oklch(35.3% 0.180 281.2);
Tailwind
colors: {
  custom: {
    50: '#795db5',
    500: '#341c94',
    950: '#000000',
  },
}
SCSS
$custom: #341c94;
$custom-light: #795db5;
$custom-dark: #000000;
JSON
{
  "hex": "#341c94",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 252,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.17964,
    "h": 281.2
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#341C94
secondary
#A9C04C
accent
#EB3DC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341C94

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

Preview Lab → · Contrast checker → · Palette generator →

#341C94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva