#341D9F#341D9F

#341D9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.192 H 279.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#341D9F
RGBrgb(52, 29, 159)
HSLhsl(251, 69%, 37%)
HSVhsv(251, 82%, 62%)
CMYKcmyk(67.3%, 81.8%, 0%, 37.6%)
CIE-LABlab(24.04, 47.57, -65.53)
CIE-LCHlch(24.04, 80.98, 305.97°)
OKLaboklab(36.65% 0.0309 -0.1892)
OKLCHoklch(36.65% 0.192 279.3)
XYZxyz(8.1115, 4.1113, 33.1603)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D9F #889F1D
analogous
#1D479F #341D9F #751D9F
triadic
#341D9F #9F341D #1D9F34
tetradic
#341D9F #9F1D47 #889F1D #1D9F75
square
#341D9F #9F1D47 #889F1D #1D9F75
split-complementary
#341D9F #9F751D #479F1D
monochromatic
#120A37 #23146B #341D9F #4526D3 #6F56E0

Accessibility & contrast

On white

11.52
#341D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#341D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D9F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D9F#FFFFFF#000000##FFFFFF
##341D9F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #341d9f;
/* rgb */ color: rgb(52, 29, 159);
/* oklch */ color: oklch(36.7% 0.192 279.3);
Tailwind
colors: {
  custom: {
    50: '#7c5ebd',
    500: '#341d9f',
    950: '#000000',
  },
}
SCSS
$custom: #341d9f;
$custom-light: #7c5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#341d9f",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 250.615,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.19173,
    "h": 279.3
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#341D9F
secondary
#B0C454
accent
#EC3CCD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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