#341B7E#341B7E

#341B7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 285.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#341B7E
RGBrgb(52, 27, 126)
HSLhsl(255, 65%, 30%)
HSVhsv(255, 79%, 49%)
CMYKcmyk(58.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(20.12, 38.54, -51.45)
CIE-LCHlch(20.12, 64.29, 306.83°)
OKLaboklab(32.86% 0.0421 -0.1481)
OKLCHoklch(32.86% 0.154 285.9)
XYZxyz(5.5729, 3.0200, 20.0239)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7E #657E1B
analogous
#1B337E #341B7E #661B7E
triadic
#341B7E #7E341B #1B7E34
tetradic
#341B7E #7E1B33 #657E1B #1B7E66
square
#341B7E #7E1B33 #657E1B #1B7E66
split-complementary
#341B7E #7E661B #337E1B
monochromatic
#0A0519 #1F104C #341B7E #4926B0 #643ED6

Accessibility & contrast

On white

13.09
#341B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B7E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7E#FFFFFF#000000##FFFFFF
##341B7E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#0F374B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341b7e;
/* rgb */ color: rgb(52, 27, 126);
/* oklch */ color: oklch(32.9% 0.154 285.9);
Tailwind
colors: {
  custom: {
    50: '#755ba4',
    500: '#341b7e',
    950: '#000000',
  },
}
SCSS
$custom: #341b7e;
$custom-light: #755ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7e",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 255.152,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32864,
    "c": 0.15402,
    "h": 285.9
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#341B7E
secondary
#96B243
accent
#E840BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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