#341B95#341B95

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

Color values

HEX#341B95
RGBrgb(52, 27, 149)
HSLhsl(252, 69%, 35%)
HSVhsv(252, 82%, 58%)
CMYKcmyk(65.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.60, 45.51, -61.78)
CIE-LCHlch(22.60, 76.73, 306.38°)
OKLaboklab(35.32% 0.035 -0.1783)
OKLCHoklch(35.32% 0.182 281.1)
XYZxyz(7.2312, 3.6833, 28.7578)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B95 #7C951B
analogous
#1B3F95 #341B95 #711B95
triadic
#341B95 #95341B #1B9534
tetradic
#341B95 #951B3F #7C951B #1B9571
square
#341B95 #951B3F #7C951B #1B9571
split-complementary
#341B95 #95711B #3F951B
monochromatic
#10082D #221261 #341B95 #4624C9 #6A4CDF

Accessibility & contrast

On white

12.09
#341B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B95
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B95#FFFFFF#000000##FFFFFF
##341B951.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b95;
/* rgb */ color: rgb(52, 27, 149);
/* oklch */ color: oklch(35.3% 0.182 281.1);
Tailwind
colors: {
  custom: {
    50: '#7a5cb5',
    500: '#341b95',
    950: '#000000',
  },
}
SCSS
$custom: #341b95;
$custom-light: #7a5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341b95",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 252.295,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.18169,
    "h": 281.1
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#341B95
secondary
#A9C14B
accent
#EC3CC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341B95

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

Preview Lab → · Contrast checker → · Palette generator →

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