#341B97#341B97

#341B97 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.184 H 280.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#341B97
RGBrgb(52, 27, 151)
HSLhsl(252, 70%, 35%)
HSVhsv(252, 82%, 59%)
CMYKcmyk(65.6%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.82, 46.10, -62.64)
CIE-LCHlch(22.82, 77.78, 306.35°)
OKLaboklab(35.54% 0.0344 -0.1808)
OKLCHoklch(35.54% 0.184 280.8)
XYZxyz(7.3923, 3.7477, 29.6060)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B97 #7E971B
analogous
#1B4097 #341B97 #721B97
triadic
#341B97 #97341B #1B9734
tetradic
#341B97 #971B40 #7E971B #1B9772
square
#341B97 #971B40 #7E971B #1B9772
split-complementary
#341B97 #97721B #40971B
monochromatic
#10082F #221263 #341B97 #4624CB #6B4DDF

Accessibility & contrast

On white

12.00
#341B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#341B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B97
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B97#FFFFFF#000000##FFFFFF
##341B971.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341b97;
/* rgb */ color: rgb(52, 27, 151);
/* oklch */ color: oklch(35.5% 0.184 280.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cb7',
    500: '#341b97',
    950: '#000000',
  },
}
SCSS
$custom: #341b97;
$custom-light: #7a5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#341b97",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 252.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35544,
    "c": 0.18403,
    "h": 280.8
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#341B97
secondary
#AAC14C
accent
#EC3BC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341B97

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

Preview Lab → · Contrast checker → · Palette generator →

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