#341C8F#341C8F

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

Color values

HEX#341C8F
RGBrgb(52, 28, 143)
HSLhsl(253, 67%, 34%)
HSVhsv(253, 80%, 56%)
CMYKcmyk(63.6%, 80.4%, 0%, 43.9%)
CIE-LABlab(22.10, 43.22, -58.88)
CIE-LCHlch(22.10, 73.04, 306.28°)
OKLaboklab(34.78% 0.0363 -0.1698)
OKLCHoklch(34.78% 0.174 282.1)
XYZxyz(6.7878, 3.5433, 26.3075)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8F #778F1C
analogous
#1C3D8F #341C8F #6D1C8F
triadic
#341C8F #8F341C #1C8F34
tetradic
#341C8F #8F1C3D #778F1C #1C8F6D
square
#341C8F #8F1C3D #778F1C #1C8F6D
split-complementary
#341C8F #8F6D1C #3D8F1C
monochromatic
#0F0829 #21125C #341C8F #4726C2 #684ADC

Accessibility & contrast

On white

12.29
#341C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C8F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8F#FFFFFF#000000##FFFFFF
##341C8F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341c8f;
/* rgb */ color: rgb(52, 28, 143);
/* oklch */ color: oklch(34.8% 0.174 282.1);
Tailwind
colors: {
  custom: {
    50: '#785cb1',
    500: '#341c8f',
    950: '#000000',
  },
}
SCSS
$custom: #341c8f;
$custom-light: #785cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8f",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 252.522,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.17368,
    "h": 282.1
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#341C8F
secondary
#A5BE49
accent
#EA3EC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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