#341D8D#341D8D

#341D8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.170 H 282.3°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#341D8D
RGBrgb(52, 29, 141)
HSLhsl(252, 66%, 33%)
HSVhsv(252, 79%, 55%)
CMYKcmyk(63.1%, 79.4%, 0%, 44.7%)
CIE-LABlab(22.06, 42.11, -57.70)
CIE-LCHlch(22.06, 71.43, 306.12°)
OKLaboklab(34.69% 0.0363 -0.1664)
OKLCHoklch(34.69% 0.17 282.3)
XYZxyz(6.6618, 3.5314, 25.5247)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D8D #768D1D
analogous
#1D3E8D #341D8D #6C1D8D
triadic
#341D8D #8D341D #1D8D34
tetradic
#341D8D #8D1D3E #768D1D #1D8D6C
square
#341D8D #8D1D3E #768D1D #1D8D6C
split-complementary
#341D8D #8D6C1D #3E8D1D
monochromatic
#0F0827 #21135A #341D8D #4727C0 #684BDA

Accessibility & contrast

On white

12.31
#341D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#341D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D8D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D8D#FFFFFF#000000##FFFFFF
##341D8D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341d8d;
/* rgb */ color: rgb(52, 29, 141);
/* oklch */ color: oklch(34.7% 0.170 282.3);
Tailwind
colors: {
  custom: {
    50: '#785daf',
    500: '#341d8d',
    950: '#000000',
  },
}
SCSS
$custom: #341d8d;
$custom-light: #785daf;
$custom-dark: #000000;
JSON
{
  "hex": "#341d8d",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 252.321,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.17035,
    "h": 282.3
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#341D8D
secondary
#A5BC4A
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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