#341B84#341B84

#341B84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.161 H 284.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#341B84
RGBrgb(52, 27, 132)
HSLhsl(254, 66%, 31%)
HSVhsv(254, 80%, 52%)
CMYKcmyk(60.6%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.75, 40.37, -54.22)
CIE-LCHlch(20.75, 67.60, 306.67°)
OKLaboklab(33.49% 0.0403 -0.1562)
OKLCHoklch(33.49% 0.161 284.5)
XYZxyz(5.9717, 3.1795, 22.1243)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B84 #6B841B
analogous
#1B3684 #341B84 #681B84
triadic
#341B84 #84341B #1B8434
tetradic
#341B84 #841B36 #6B841B #1B8468
square
#341B84 #841B36 #6B841B #1B8468
split-complementary
#341B84 #84681B #36841B
monochromatic
#0C061E #201151 #341B84 #4825B7 #6541D8

Accessibility & contrast

On white

12.84
#341B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B84
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B84#FFFFFF#000000##FFFFFF
##341B841.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#03394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341b84;
/* rgb */ color: rgb(52, 27, 132);
/* oklch */ color: oklch(33.5% 0.161 284.5);
Tailwind
colors: {
  custom: {
    50: '#765ba9',
    500: '#341b84',
    950: '#000000',
  },
}
SCSS
$custom: #341b84;
$custom-light: #765ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#341b84",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 254.286,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3349,
    "c": 0.16136,
    "h": 284.5
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341B84

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

Preview Lab → · Contrast checker → · Palette generator →

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