#341D8F#341D8F

#341D8F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.173 H 281.9°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#341D8F
RGBrgb(52, 29, 143)
HSLhsl(252, 66%, 34%)
HSVhsv(252, 80%, 56%)
CMYKcmyk(63.6%, 79.7%, 0%, 43.9%)
CIE-LABlab(22.27, 42.72, -58.59)
CIE-LCHlch(22.27, 72.51, 306.10°)
OKLaboklab(34.9% 0.0357 -0.169)
OKLCHoklch(34.9% 0.173 281.9)
XYZxyz(6.8119, 3.5915, 26.3155)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D8F #788F1D
analogous
#1D3F8F #341D8F #6D1D8F
triadic
#341D8F #8F341D #1D8F34
tetradic
#341D8F #8F1D3F #788F1D #1D8F6D
square
#341D8F #8F1D3F #788F1D #1D8F6D
split-complementary
#341D8F #8F6D1D #3F8F1D
monochromatic
#0F0829 #21135C #341D8F #4727C2 #694CDB

Accessibility & contrast

On white

12.22
#341D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#341D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D8F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D8F#FFFFFF#000000##FFFFFF
##341D8F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341d8f;
/* rgb */ color: rgb(52, 29, 143);
/* oklch */ color: oklch(34.9% 0.173 281.9);
Tailwind
colors: {
  custom: {
    50: '#785db1',
    500: '#341d8f',
    950: '#000000',
  },
}
SCSS
$custom: #341d8f;
$custom-light: #785db1;
$custom-dark: #000000;
JSON
{
  "hex": "#341d8f",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 252.105,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.17277,
    "h": 281.9
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#341D8F
secondary
#A6BD4B
accent
#E93FC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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