#341A8B#341A8B

#341A8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.171 H 283.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#341A8B
RGBrgb(52, 26, 139)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(62.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(21.33, 42.98, -57.66)
CIE-LCHlch(21.33, 71.91, 306.70°)
OKLaboklab(34.12% 0.0388 -0.1663)
OKLCHoklch(34.12% 0.171 283.1)
XYZxyz(6.4443, 3.3325, 24.7247)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8B #718B1A
analogous
#1A398B #341A8B #6C1A8B
triadic
#341A8B #8B341A #1A8B34
tetradic
#341A8B #8B1A39 #718B1A #1A8B6C
square
#341A8B #8B1A39 #718B1A #1A8B6C
split-complementary
#341A8B #8B6C1A #398B1A
monochromatic
#0D0724 #211057 #341A8B #4724BF #6743DC

Accessibility & contrast

On white

12.60
#341A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A8B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8B#FFFFFF#000000##FFFFFF
##341A8B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341a8b;
/* rgb */ color: rgb(52, 26, 139);
/* oklch */ color: oklch(34.1% 0.171 283.1);
Tailwind
colors: {
  custom: {
    50: '#785bae',
    500: '#341a8b',
    950: '#000000',
  },
}
SCSS
$custom: #341a8b;
$custom-light: #785bae;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8b",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 253.805,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.17073,
    "h": 283.1
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#341A8B
secondary
#A1BD44
accent
#EB3CC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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