#341B89#341B89

#341B89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 283.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#341B89
RGBrgb(52, 27, 137)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 54%)
CMYKcmyk(62%, 80.3%, 0%, 46.3%)
CIE-LABlab(21.28, 41.89, -56.48)
CIE-LCHlch(21.28, 70.32, 306.56°)
OKLaboklab(34.02% 0.0388 -0.1628)
OKLCHoklch(34.02% 0.167 283.4)
XYZxyz(6.3221, 3.3196, 23.9697)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B89 #70891B
analogous
#1B3989 #341B89 #6B1B89
triadic
#341B89 #89341B #1B8934
tetradic
#341B89 #891B39 #70891B #1B896B
square
#341B89 #891B39 #70891B #1B896B
split-complementary
#341B89 #896B1B #39891B
monochromatic
#0D0723 #211156 #341B89 #4725BC #6644DA

Accessibility & contrast

On white

12.62
#341B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#341B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B89
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B89#FFFFFF#000000##FFFFFF
##341B891.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341b89;
/* rgb */ color: rgb(52, 27, 137);
/* oklch */ color: oklch(34.0% 0.167 283.4);
Tailwind
colors: {
  custom: {
    50: '#775bad',
    500: '#341b89',
    950: '#000000',
  },
}
SCSS
$custom: #341b89;
$custom-light: #775bad;
$custom-dark: #000000;
JSON
{
  "hex": "#341b89",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 253.636,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3402,
    "c": 0.16741,
    "h": 283.4
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#341B89
secondary
#A0BC44
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B89

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

Preview Lab → · Contrast checker → · Palette generator →

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