#341F9D#341F9D

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

Color values

HEX#341F9D
RGBrgb(52, 31, 157)
HSLhsl(250, 67%, 37%)
HSVhsv(250, 80%, 62%)
CMYKcmyk(66.9%, 80.3%, 0%, 38.4%)
CIE-LABlab(24.14, 46.01, -64.14)
CIE-LCHlch(24.14, 78.93, 305.65°)
OKLaboklab(36.66% 0.0305 -0.1852)
OKLCHoklch(36.66% 0.188 279.3)
XYZxyz(7.9900, 4.1437, 32.2705)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F9D #889D1F
analogous
#1F499D #341F9D #731F9D
triadic
#341F9D #9D341F #1F9D34
tetradic
#341F9D #9D1F49 #889D1F #1F9D73
square
#341F9D #9D1F49 #889D1F #1F9D73
split-complementary
#341F9D #9D731F #499D1F
monochromatic
#120B37 #23156A #341F9D #4529D0 #6F58DE

Accessibility & contrast

On white

11.48
#341F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#341F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F9D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F9D#FFFFFF#000000##FFFFFF
##341F9D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #341f9d;
/* rgb */ color: rgb(52, 31, 157);
/* oklch */ color: oklch(36.7% 0.188 279.3);
Tailwind
colors: {
  custom: {
    50: '#7b5fbb',
    500: '#341f9d',
    950: '#000000',
  },
}
SCSS
$custom: #341f9d;
$custom-light: #7b5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#341f9d",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 250,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36658,
    "c": 0.18769,
    "h": 279.3
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#341F9D
secondary
#B0C256
accent
#EA3ECD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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