#341B7F#341B7F

#341B7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.155 H 285.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#341B7F
RGBrgb(52, 27, 127)
HSLhsl(255, 65%, 30%)
HSVhsv(255, 79%, 50%)
CMYKcmyk(59.1%, 78.7%, 0%, 50.2%)
CIE-LABlab(20.23, 38.85, -51.92)
CIE-LCHlch(20.23, 64.84, 306.80°)
OKLaboklab(32.97% 0.0418 -0.1495)
OKLCHoklch(32.97% 0.155 285.6)
XYZxyz(5.6377, 3.0459, 20.3654)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7F #667F1B
analogous
#1B347F #341B7F #661B7F
triadic
#341B7F #7F341B #1B7F34
tetradic
#341B7F #7F1B34 #667F1B #1B7F66
square
#341B7F #7F1B34 #667F1B #1B7F66
split-complementary
#341B7F #7F661B #347F1B
monochromatic
#0B061A #1F104D #341B7F #4926B1 #643ED6

Accessibility & contrast

On white

13.05
#341B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B7F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7F#FFFFFF#000000##FFFFFF
##341B7F1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#0E374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341b7f;
/* rgb */ color: rgb(52, 27, 127);
/* oklch */ color: oklch(33.0% 0.155 285.6);
Tailwind
colors: {
  custom: {
    50: '#755ba5',
    500: '#341b7f',
    950: '#000000',
  },
}
SCSS
$custom: #341b7f;
$custom-light: #755ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7f",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 255,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32967,
    "c": 0.15526,
    "h": 285.6
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#341B7F
secondary
#97B343
accent
#E840BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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