#341D7A#341D7A

#341D7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.147 H 286.4°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#341D7A
RGBrgb(52, 29, 122)
HSLhsl(255, 62%, 30%)
HSVhsv(255, 76%, 48%)
CMYKcmyk(57.4%, 76.2%, 0%, 52.2%)
CIE-LABlab(20.10, 36.23, -48.95)
CIE-LCHlch(20.10, 60.90, 306.51°)
OKLaboklab(32.72% 0.0416 -0.1408)
OKLCHoklch(32.72% 0.147 286.4)
XYZxyz(5.3673, 3.0136, 18.7074)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D7A #637A1D
analogous
#1D347A #341D7A #631D7A
triadic
#341D7A #7A341D #1D7A34
tetradic
#341D7A #7A1D34 #637A1D #1D7A63
square
#341D7A #7A1D34 #637A1D #1D7A63
split-complementary
#341D7A #7A631D #347A1D
monochromatic
#0B0619 #1F1149 #341D7A #4929AB #6440D2

Accessibility & contrast

On white

13.10
#341D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D7A
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D7A#FFFFFF#000000##FFFFFF
##341D7A1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#15364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341d7a;
/* rgb */ color: rgb(52, 29, 122);
/* oklch */ color: oklch(32.7% 0.147 286.4);
Tailwind
colors: {
  custom: {
    50: '#745ca1',
    500: '#341d7a',
    950: '#000000',
  },
}
SCSS
$custom: #341d7a;
$custom-light: #745ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#341d7a",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 254.839,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.14685,
    "h": 286.4
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#341D7A
secondary
#94AE45
accent
#E543BD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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