#341D8C#341D8C

#341D8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.169 H 282.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#341D8C
RGBrgb(52, 29, 140)
HSLhsl(252, 66%, 33%)
HSVhsv(252, 79%, 55%)
CMYKcmyk(62.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(21.95, 41.80, -57.26)
CIE-LCHlch(21.95, 70.89, 306.13°)
OKLaboklab(34.58% 0.0366 -0.1651)
OKLCHoklch(34.58% 0.169 282.5)
XYZxyz(6.5877, 3.5018, 25.1346)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D8C #758C1D
analogous
#1D3E8C #341D8C #6B1D8C
triadic
#341D8C #8C341D #1D8C34
tetradic
#341D8C #8C1D3E #758C1D #1D8C6B
square
#341D8C #8C1D3E #758C1D #1D8C6B
split-complementary
#341D8C #8C6B1D #3E8C1D
monochromatic
#0E0827 #211259 #341D8C #4728BF #684AD9

Accessibility & contrast

On white

12.35
#341D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D8C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D8C#FFFFFF#000000##FFFFFF
##341D8C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341d8c;
/* rgb */ color: rgb(52, 29, 140);
/* oklch */ color: oklch(34.6% 0.169 282.5);
Tailwind
colors: {
  custom: {
    50: '#785daf',
    500: '#341d8c',
    950: '#000000',
  },
}
SCSS
$custom: #341d8c;
$custom-light: #785daf;
$custom-dark: #000000;
JSON
{
  "hex": "#341d8c",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 252.432,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34583,
    "c": 0.16913,
    "h": 282.5
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#341D8C
secondary
#A4BC49
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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