#341B7D#341B7D

#341B7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.153 H 286.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#341B7D
RGBrgb(52, 27, 125)
HSLhsl(255, 64%, 30%)
HSVhsv(255, 78%, 49%)
CMYKcmyk(58.4%, 78.4%, 0%, 51%)
CIE-LABlab(20.02, 38.23, -50.99)
CIE-LCHlch(20.02, 63.73, 306.87°)
OKLaboklab(32.76% 0.0424 -0.1468)
OKLCHoklch(32.76% 0.153 286.1)
XYZxyz(5.5087, 2.9943, 19.6857)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7D #647D1B
analogous
#1B337D #341B7D #651B7D
triadic
#341B7D #7D341B #1B7D34
tetradic
#341B7D #7D1B33 #647D1B #1B7D65
square
#341B7D #7D1B33 #647D1B #1B7D65
split-complementary
#341B7D #7D651B #337D1B
monochromatic
#0A0519 #1F104B #341B7D #4926AF #643DD5

Accessibility & contrast

On white

13.13
#341B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B7D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7D#FFFFFF#000000##FFFFFF
##341B7D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#11374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341b7d;
/* rgb */ color: rgb(52, 27, 125);
/* oklch */ color: oklch(32.8% 0.153 286.1);
Tailwind
colors: {
  custom: {
    50: '#755ba4',
    500: '#341b7d',
    950: '#000000',
  },
}
SCSS
$custom: #341b7d;
$custom-light: #755ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7d",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 255.306,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32761,
    "c": 0.15279,
    "h": 286.1
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#341B7D
secondary
#95B143
accent
#E740BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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