#341F79#341F79

#341F79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.143 H 286.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#341F79
RGBrgb(52, 31, 121)
HSLhsl(254, 59%, 30%)
HSVhsv(254, 74%, 47%)
CMYKcmyk(57%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.40, 34.79, -47.81)
CIE-LCHlch(20.40, 59.13, 306.04°)
OKLaboklab(32.91% 0.0401 -0.1375)
OKLCHoklch(32.91% 0.143 286.2)
XYZxyz(5.3563, 3.0902, 18.3997)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F79 #64791F
analogous
#1F3779 #341F79 #611F79
triadic
#341F79 #79341F #1F7934
tetradic
#341F79 #791F37 #64791F #1F7961
square
#341F79 #791F37 #64791F #1F7961
split-complementary
#341F79 #79611F #37791F
monochromatic
#0A0618 #1F1348 #341F79 #492BAA #6443CF

Accessibility & contrast

On white

12.98
#341F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F79
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F79#FFFFFF#000000##FFFFFF
##341F791.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#16374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341f79;
/* rgb */ color: rgb(52, 31, 121);
/* oklch */ color: oklch(32.9% 0.143 286.2);
Tailwind
colors: {
  custom: {
    50: '#745da1',
    500: '#341f79',
    950: '#000000',
  },
}
SCSS
$custom: #341f79;
$custom-light: #745da1;
$custom-dark: #000000;
JSON
{
  "hex": "#341f79",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 254,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32908,
    "c": 0.14324,
    "h": 286.2
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#341F79
secondary
#95AC47
accent
#E245BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F79

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

Preview Lab → · Contrast checker → · Palette generator →

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