#341977#341977

#341977 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.148 H 288.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#341977
RGBrgb(52, 25, 119)
HSLhsl(257, 65%, 28%)
HSVhsv(257, 79%, 47%)
CMYKcmyk(56.3%, 79%, 0%, 53.3%)
CIE-LABlab(19.04, 37.45, -48.76)
CIE-LCHlch(19.04, 61.48, 307.52°)
OKLaboklab(31.89% 0.0457 -0.1403)
OKLCHoklch(31.89% 0.148 288)
XYZxyz(5.0926, 2.7570, 17.7130)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341977 #5C7719
analogous
#192D77 #341977 #631977
triadic
#341977 #773419 #197734
tetradic
#341977 #77192D #5C7719 #197763
square
#341977 #77192D #5C7719 #197763
split-complementary
#341977 #776319 #2D7719
monochromatic
#0B0519 #1E0E44 #341977 #4A24AA #6336D5

Accessibility & contrast

On white

13.54
#341977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#341977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341977
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341977#FFFFFF#000000##FFFFFF
##3419771.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#183347
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341977;
/* rgb */ color: rgb(52, 25, 119);
/* oklch */ color: oklch(31.9% 0.148 288.0);
Tailwind
colors: {
  custom: {
    50: '#74599f',
    500: '#341977',
    950: '#000000',
  },
}
SCSS
$custom: #341977;
$custom-light: #74599f;
$custom-dark: #000000;
JSON
{
  "hex": "#341977",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 257.234,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31889,
    "c": 0.14752,
    "h": 288
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#341977
secondary
#8DAC40
accent
#E840B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341977

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

Preview Lab → · Contrast checker → · Palette generator →

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