#341C85#341C85

#341C85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.162 H 284.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#341C85
RGBrgb(52, 28, 133)
HSLhsl(254, 65%, 32%)
HSVhsv(254, 79%, 52%)
CMYKcmyk(60.9%, 78.9%, 0%, 47.8%)
CIE-LABlab(21.03, 40.17, -54.38)
CIE-LCHlch(21.03, 67.61, 306.45°)
OKLaboklab(33.72% 0.0393 -0.1567)
OKLCHoklch(33.72% 0.162 284.1)
XYZxyz(6.0638, 3.2536, 22.4942)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C85 #6D851C
analogous
#1C3985 #341C85 #691C85
triadic
#341C85 #85341C #1C8534
tetradic
#341C85 #851C39 #6D851C #1C8569
square
#341C85 #851C39 #6D851C #1C8569
split-complementary
#341C85 #85691C #39851C
monochromatic
#0C0720 #201152 #341C85 #4827B8 #6644D8

Accessibility & contrast

On white

12.72
#341C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C85
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C85#FFFFFF#000000##FFFFFF
##341C851.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#013A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341c85;
/* rgb */ color: rgb(52, 28, 133);
/* oklch */ color: oklch(33.7% 0.162 284.1);
Tailwind
colors: {
  custom: {
    50: '#765caa',
    500: '#341c85',
    950: '#000000',
  },
}
SCSS
$custom: #341c85;
$custom-light: #765caa;
$custom-dark: #000000;
JSON
{
  "hex": "#341c85",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 253.714,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.16159,
    "h": 284.1
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#341C85
secondary
#9EB845
accent
#E840C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C85

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

Preview Lab → · Contrast checker → · Palette generator →

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