#341971#341971

#341971 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.140 H 289.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#341971
RGBrgb(52, 25, 113)
HSLhsl(258, 64%, 27%)
HSVhsv(258, 78%, 44%)
CMYKcmyk(54%, 77.9%, 0%, 55.7%)
CIE-LABlab(18.44, 35.63, -45.88)
CIE-LCHlch(18.44, 58.09, 307.83°)
OKLaboklab(31.28% 0.0474 -0.1318)
OKLCHoklch(31.28% 0.14 289.8)
XYZxyz(4.7436, 2.6174, 15.8748)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341971 #567119
analogous
#192A71 #341971 #601971
triadic
#341971 #713419 #197134
tetradic
#341971 #71192A #567119 #197160
square
#341971 #71192A #567119 #197160
split-complementary
#341971 #716019 #2A7119
monochromatic
#0C0619 #1D0E3F #341971 #4B24A3 #6333D2

Accessibility & contrast

On white

13.78
#341971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#341971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341971
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341971#FFFFFF#000000##FFFFFF
##3419711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#1E3144
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341971;
/* rgb */ color: rgb(52, 25, 113);
/* oklch */ color: oklch(31.3% 0.140 289.8);
Tailwind
colors: {
  custom: {
    50: '#73599b',
    500: '#341971',
    950: '#000000',
  },
}
SCSS
$custom: #341971;
$custom-light: #73599b;
$custom-dark: #000000;
JSON
{
  "hex": "#341971",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 258.409,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31283,
    "c": 0.14009,
    "h": 289.8
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#341971
secondary
#87A640
accent
#E741B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341971

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

Preview Lab → · Contrast checker → · Palette generator →

#341971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva