#341F7A#341F7A

#341F7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 286.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#341F7A
RGBrgb(52, 31, 122)
HSLhsl(254, 59%, 30%)
HSVhsv(254, 75%, 48%)
CMYKcmyk(57.4%, 74.6%, 0%, 52.2%)
CIE-LABlab(20.50, 35.11, -48.29)
CIE-LCHlch(20.50, 59.70, 306.02°)
OKLaboklab(33.01% 0.0398 -0.1389)
OKLCHoklch(33.01% 0.145 286)
XYZxyz(5.4180, 3.1149, 18.7243)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F7A #657A1F
analogous
#1F387A #341F7A #611F7A
triadic
#341F7A #7A341F #1F7A34
tetradic
#341F7A #7A1F38 #657A1F #1F7A61
square
#341F7A #7A1F38 #657A1F #1F7A61
split-complementary
#341F7A #7A611F #387A1F
monochromatic
#0A0618 #1F1349 #341F7A #492BAB #6444CF

Accessibility & contrast

On white

12.94
#341F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341F7A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F7A#FFFFFF#000000##FFFFFF
##341F7A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#15374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341f7a;
/* rgb */ color: rgb(52, 31, 122);
/* oklch */ color: oklch(33.0% 0.145 286.0);
Tailwind
colors: {
  custom: {
    50: '#745da1',
    500: '#341f7a',
    950: '#000000',
  },
}
SCSS
$custom: #341f7a;
$custom-light: #745da1;
$custom-dark: #000000;
JSON
{
  "hex": "#341f7a",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 253.846,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33007,
    "c": 0.14453,
    "h": 286
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#341F7A
secondary
#96AD47
accent
#E345BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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