#341D8E#341D8E

#341D8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.172 H 282.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#341D8E
RGBrgb(52, 29, 142)
HSLhsl(252, 66%, 34%)
HSVhsv(252, 80%, 56%)
CMYKcmyk(63.4%, 79.6%, 0%, 44.3%)
CIE-LABlab(22.16, 42.42, -58.15)
CIE-LCHlch(22.16, 71.98, 306.11°)
OKLaboklab(34.8% 0.036 -0.1677)
OKLCHoklch(34.8% 0.172 282.1)
XYZxyz(6.7365, 3.5613, 25.9184)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D8E #778E1D
analogous
#1D3E8E #341D8E #6C1D8E
triadic
#341D8E #8E341D #1D8E34
tetradic
#341D8E #8E1D3E #778E1D #1D8E6C
square
#341D8E #8E1D3E #778E1D #1D8E6C
split-complementary
#341D8E #8E6C1D #3E8E1D
monochromatic
#0F0828 #21135B #341D8E #4727C1 #684BDA

Accessibility & contrast

On white

12.26
#341D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D8E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D8E#FFFFFF#000000##FFFFFF
##341D8E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341d8e;
/* rgb */ color: rgb(52, 29, 142);
/* oklch */ color: oklch(34.8% 0.172 282.1);
Tailwind
colors: {
  custom: {
    50: '#785db0',
    500: '#341d8e',
    950: '#000000',
  },
}
SCSS
$custom: #341d8e;
$custom-light: #785db0;
$custom-dark: #000000;
JSON
{
  "hex": "#341d8e",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 252.212,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34797,
    "c": 0.17156,
    "h": 282.1
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#341D8E
secondary
#A5BD4A
accent
#E93FC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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