#341B7A#341B7A

#341B7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 286.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#341B7A
RGBrgb(52, 27, 122)
HSLhsl(256, 64%, 29%)
HSVhsv(256, 78%, 48%)
CMYKcmyk(57.4%, 77.9%, 0%, 52.2%)
CIE-LABlab(19.72, 37.31, -49.58)
CIE-LCHlch(19.72, 62.05, 306.97°)
OKLaboklab(32.45% 0.0432 -0.1427)
OKLCHoklch(32.45% 0.149 286.9)
XYZxyz(5.3199, 2.9188, 18.6916)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7A #617A1B
analogous
#1B327A #341B7A #641B7A
triadic
#341B7A #7A341B #1B7A34
tetradic
#341B7A #7A1B32 #617A1B #1B7A64
square
#341B7A #7A1B32 #617A1B #1B7A64
split-complementary
#341B7A #7A641B #327A1B
monochromatic
#0B0619 #1F1048 #341B7A #4926AC #643CD4

Accessibility & contrast

On white

13.26
#341B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B7A
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7A#FFFFFF#000000##FFFFFF
##341B7A1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#153549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341b7a;
/* rgb */ color: rgb(52, 27, 122);
/* oklch */ color: oklch(32.5% 0.149 286.9);
Tailwind
colors: {
  custom: {
    50: '#745aa1',
    500: '#341b7a',
    950: '#000000',
  },
}
SCSS
$custom: #341b7a;
$custom-light: #745aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7a",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 255.789,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.14907,
    "h": 286.9
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#341B7A
secondary
#92AE43
accent
#E741BB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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