#341777#341777

#341777 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.150 H 288.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#341777
RGBrgb(52, 23, 119)
HSLhsl(258, 68%, 28%)
HSVhsv(258, 81%, 47%)
CMYKcmyk(56.3%, 80.7%, 0%, 53.3%)
CIE-LABlab(18.69, 38.46, -49.34)
CIE-LCHlch(18.69, 62.56, 307.94°)
OKLaboklab(31.64% 0.0473 -0.1419)
OKLCHoklch(31.64% 0.15 288.4)
XYZxyz(5.0514, 2.6745, 17.6993)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341777 #5A7717
analogous
#172A77 #341777 #641777
triadic
#341777 #773417 #177734
tetradic
#341777 #77172A #5A7717 #177764
square
#341777 #77172A #5A7717 #177764
split-complementary
#341777 #776417 #2A7717
monochromatic
#0B051A #1E0D44 #341777 #4A21AA #6331D7

Accessibility & contrast

On white

13.68
#341777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341777
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341777#FFFFFF#000000##FFFFFF
##3417771.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#193347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341777;
/* rgb */ color: rgb(52, 23, 119);
/* oklch */ color: oklch(31.6% 0.150 288.4);
Tailwind
colors: {
  custom: {
    50: '#74589f',
    500: '#341777',
    950: '#000000',
  },
}
SCSS
$custom: #341777;
$custom-light: #74589f;
$custom-dark: #000000;
JSON
{
  "hex": "#341777",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 258.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.1496,
    "h": 288.4
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#341777
secondary
#8BAC3E
accent
#EA3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #341777

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

Preview Lab → · Contrast checker → · Palette generator →

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