#341F7F#341F7F

#341F7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.151 H 284.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#341F7F
RGBrgb(52, 31, 127)
HSLhsl(253, 61%, 31%)
HSVhsv(253, 76%, 50%)
CMYKcmyk(59.1%, 75.6%, 0%, 50.2%)
CIE-LABlab(20.99, 36.69, -50.67)
CIE-LCHlch(20.99, 62.55, 305.91°)
OKLaboklab(33.5% 0.0387 -0.1459)
OKLCHoklch(33.5% 0.151 284.8)
XYZxyz(5.7358, 3.2420, 20.3981)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F7F #6A7F1F
analogous
#1F3A7F #341F7F #641F7F
triadic
#341F7F #7F341F #1F7F34
tetradic
#341F7F #7F1F3A #6A7F1F #1F7F64
square
#341F7F #7F1F3A #6A7F1F #1F7F64
split-complementary
#341F7F #7F641F #3A7F1F
monochromatic
#0C071D #20134E #341F7F #482BB0 #6546D2

Accessibility & contrast

On white

12.74
#341F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F7F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F7F#FFFFFF#000000##FFFFFF
##341F7F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#0D394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341f7f;
/* rgb */ color: rgb(52, 31, 127);
/* oklch */ color: oklch(33.5% 0.151 284.8);
Tailwind
colors: {
  custom: {
    50: '#755da5',
    500: '#341f7f',
    950: '#000000',
  },
}
SCSS
$custom: #341f7f;
$custom-light: #755da5;
$custom-dark: #000000;
JSON
{
  "hex": "#341f7f",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 253.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33503,
    "c": 0.15093,
    "h": 284.8
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#341F7F
secondary
#9BB248
accent
#E444C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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