#341976#341976

#341976 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.146 H 288.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#341976
RGBrgb(52, 25, 118)
HSLhsl(257, 65%, 28%)
HSVhsv(257, 79%, 46%)
CMYKcmyk(55.9%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.94, 37.15, -48.28)
CIE-LCHlch(18.94, 60.92, 307.57°)
OKLaboklab(31.79% 0.046 -0.1389)
OKLCHoklch(31.79% 0.146 288.3)
XYZxyz(5.0329, 2.7331, 17.3984)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341976 #5B7619
analogous
#192D76 #341976 #621976
triadic
#341976 #763419 #197634
tetradic
#341976 #76192D #5B7619 #197662
square
#341976 #76192D #5B7619 #197662
split-complementary
#341976 #766219 #2D7619
monochromatic
#0B0519 #1E0E43 #341976 #4A24A8 #6335D4

Accessibility & contrast

On white

13.58
#341976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341976
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341976#FFFFFF#000000##FFFFFF
##3419761.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#193346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341976;
/* rgb */ color: rgb(52, 25, 118);
/* oklch */ color: oklch(31.8% 0.146 288.3);
Tailwind
colors: {
  custom: {
    50: '#74599e',
    500: '#341976',
    950: '#000000',
  },
}
SCSS
$custom: #341976;
$custom-light: #74599e;
$custom-dark: #000000;
JSON
{
  "hex": "#341976",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 257.419,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31787,
    "c": 0.14629,
    "h": 288.3
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#341976
secondary
#8CAB40
accent
#E840B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341976

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

Preview Lab → · Contrast checker → · Palette generator →

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