#341B83#341B83

#341B83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.160 H 284.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#341B83
RGBrgb(52, 27, 131)
HSLhsl(254, 66%, 31%)
HSVhsv(254, 79%, 51%)
CMYKcmyk(60.3%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.64, 40.07, -53.76)
CIE-LCHlch(20.64, 67.05, 306.70°)
OKLaboklab(33.39% 0.0406 -0.1549)
OKLCHoklch(33.39% 0.16 284.7)
XYZxyz(5.9036, 3.1523, 21.7657)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B83 #6A831B
analogous
#1B3683 #341B83 #681B83
triadic
#341B83 #83341B #1B8334
tetradic
#341B83 #831B36 #6A831B #1B8368
square
#341B83 #831B36 #6A831B #1B8368
split-complementary
#341B83 #83681B #36831B
monochromatic
#0C061E #201150 #341B83 #4825B6 #6541D8

Accessibility & contrast

On white

12.88
#341B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B83
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B83#FFFFFF#000000##FFFFFF
##341B831.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#06394E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341b83;
/* rgb */ color: rgb(52, 27, 131);
/* oklch */ color: oklch(33.4% 0.160 284.7);
Tailwind
colors: {
  custom: {
    50: '#765ba8',
    500: '#341b83',
    950: '#000000',
  },
}
SCSS
$custom: #341b83;
$custom-light: #765ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#341b83",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 254.423,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.16015,
    "h": 284.7
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#341B83
secondary
#9BB643
accent
#E93FC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341B83

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

Preview Lab → · Contrast checker → · Palette generator →

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