#341877#341877

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

Color values

HEX#341877
RGBrgb(52, 24, 119)
HSLhsl(258, 66%, 28%)
HSVhsv(258, 80%, 47%)
CMYKcmyk(56.3%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.86, 37.96, -49.05)
CIE-LCHlch(18.86, 62.03, 307.73°)
OKLaboklab(31.76% 0.0465 -0.1411)
OKLCHoklch(31.76% 0.149 288.2)
XYZxyz(5.0716, 2.7150, 17.7060)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341877 #5B7718
analogous
#182B77 #341877 #631877
triadic
#341877 #773418 #187734
tetradic
#341877 #77182B #5B7718 #187763
square
#341877 #77182B #5B7718 #187763
split-complementary
#341877 #776318 #2B7718
monochromatic
#0B0519 #1E0E44 #341877 #4A22AA #6333D6

Accessibility & contrast

On white

13.61
#341877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341877
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341877#FFFFFF#000000##FFFFFF
##3418771.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341877;
/* rgb */ color: rgb(52, 24, 119);
/* oklch */ color: oklch(31.8% 0.149 288.2);
Tailwind
colors: {
  custom: {
    50: '#74599f',
    500: '#341877',
    950: '#000000',
  },
}
SCSS
$custom: #341877;
$custom-light: #74599f;
$custom-dark: #000000;
JSON
{
  "hex": "#341877",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 257.684,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.14857,
    "h": 288.2
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#341877
secondary
#8CAC3F
accent
#E93EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341877

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

Preview Lab → · Contrast checker → · Palette generator →

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