#341B7B#341B7B

#341B7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.150 H 286.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#341B7B
RGBrgb(52, 27, 123)
HSLhsl(256, 64%, 29%)
HSVhsv(256, 78%, 48%)
CMYKcmyk(57.7%, 78%, 0%, 51.8%)
CIE-LABlab(19.82, 37.62, -50.05)
CIE-LCHlch(19.82, 62.61, 306.93°)
OKLaboklab(32.56% 0.043 -0.144)
OKLCHoklch(32.56% 0.15 286.6)
XYZxyz(5.3822, 2.9437, 19.0196)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7B #627B1B
analogous
#1B327B #341B7B #641B7B
triadic
#341B7B #7B341B #1B7B34
tetradic
#341B7B #7B1B32 #627B1B #1B7B64
square
#341B7B #7B1B32 #627B1B #1B7B64
split-complementary
#341B7B #7B641B #327B1B
monochromatic
#0B0619 #1F1049 #341B7B #4926AD #643CD4

Accessibility & contrast

On white

13.22
#341B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B7B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7B#FFFFFF#000000##FFFFFF
##341B7B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#14364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341b7b;
/* rgb */ color: rgb(52, 27, 123);
/* oklch */ color: oklch(32.6% 0.150 286.6);
Tailwind
colors: {
  custom: {
    50: '#745aa2',
    500: '#341b7b',
    950: '#000000',
  },
}
SCSS
$custom: #341b7b;
$custom-light: #745aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7b",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 255.625,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.15031,
    "h": 286.6
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#341B7B
secondary
#93AF43
accent
#E741BC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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