#341D9C#341D9C

#341D9C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.188 H 279.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#341D9C
RGBrgb(52, 29, 156)
HSLhsl(251, 69%, 36%)
HSVhsv(251, 81%, 61%)
CMYKcmyk(66.7%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.70, 46.67, -64.25)
CIE-LCHlch(23.70, 79.41, 305.99°)
OKLaboklab(36.32% 0.0318 -0.1855)
OKLCHoklch(36.32% 0.188 279.7)
XYZxyz(7.8544, 4.0085, 31.8058)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D9C #859C1D
analogous
#1D469C #341D9C #741D9C
triadic
#341D9C #9C341D #1D9C34
tetradic
#341D9C #9C1D46 #859C1D #1D9C74
square
#341D9C #9C1D46 #859C1D #1D9C74
split-complementary
#341D9C #9C741D #469C1D
monochromatic
#120A35 #231368 #341D9C #4527D0 #6D54DF

Accessibility & contrast

On white

11.66
#341D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D9C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D9C#FFFFFF#000000##FFFFFF
##341D9C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341d9c;
/* rgb */ color: rgb(52, 29, 156);
/* oklch */ color: oklch(36.3% 0.188 279.7);
Tailwind
colors: {
  custom: {
    50: '#7b5eba',
    500: '#341d9c',
    950: '#000000',
  },
}
SCSS
$custom: #341d9c;
$custom-light: #7b5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#341d9c",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 250.866,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.18822,
    "h": 279.7
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#341D9C
secondary
#AEC252
accent
#EB3CCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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