#341B96#341B96

#341B96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.183 H 280.9°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#341B96
RGBrgb(52, 27, 150)
HSLhsl(252, 69%, 35%)
HSVhsv(252, 82%, 59%)
CMYKcmyk(65.3%, 82%, 0%, 41.2%)
CIE-LABlab(22.71, 45.80, -62.21)
CIE-LCHlch(22.71, 77.25, 306.36°)
OKLaboklab(35.43% 0.0347 -0.1795)
OKLCHoklch(35.43% 0.183 280.9)
XYZxyz(7.3114, 3.7154, 29.1801)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B96 #7D961B
analogous
#1B4096 #341B96 #721B96
triadic
#341B96 #96341B #1B9634
tetradic
#341B96 #961B40 #7D961B #1B9672
square
#341B96 #961B40 #7D961B #1B9672
split-complementary
#341B96 #96721B #40961B
monochromatic
#10082E #221262 #341B96 #4624CA #6A4DDF

Accessibility & contrast

On white

12.05
#341B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B96
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B96#FFFFFF#000000##FFFFFF
##341B961.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b96;
/* rgb */ color: rgb(52, 27, 150);
/* oklch */ color: oklch(35.4% 0.183 280.9);
Tailwind
colors: {
  custom: {
    50: '#7a5cb6',
    500: '#341b96',
    950: '#000000',
  },
}
SCSS
$custom: #341b96;
$custom-light: #7a5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#341b96",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 252.195,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.18286,
    "h": 280.9
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#341B96
secondary
#A9C14C
accent
#EC3BC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341B96

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

Preview Lab → · Contrast checker → · Palette generator →

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