#341E77#341E77

#341E77 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.142 H 287.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#341E77
RGBrgb(52, 30, 119)
HSLhsl(255, 60%, 29%)
HSVhsv(255, 75%, 47%)
CMYKcmyk(56.3%, 74.8%, 0%, 53.3%)
CIE-LABlab(20.00, 34.73, -47.18)
CIE-LCHlch(20.00, 58.59, 306.36°)
OKLaboklab(32.57% 0.0414 -0.1357)
OKLCHoklch(32.57% 0.142 287)
XYZxyz(5.2092, 2.9902, 17.7519)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E77 #61771E
analogous
#1E3577 #341E77 #611E77
triadic
#341E77 #77341E #1E7734
tetradic
#341E77 #771E35 #61771E #1E7761
square
#341E77 #771E35 #61771E #1E7761
split-complementary
#341E77 #77611E #35771E
monochromatic
#0B0618 #1F1246 #341E77 #492AA8 #6440CF

Accessibility & contrast

On white

13.14
#341E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E77
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E77#FFFFFF#000000##FFFFFF
##341E771.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#183648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341e77;
/* rgb */ color: rgb(52, 30, 119);
/* oklch */ color: oklch(32.6% 0.142 287.0);
Tailwind
colors: {
  custom: {
    50: '#735c9f',
    500: '#341e77',
    950: '#000000',
  },
}
SCSS
$custom: #341e77;
$custom-light: #735c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#341e77",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 254.831,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.14185,
    "h": 287
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#341E77
secondary
#92AB46
accent
#E345BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341E77

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

Preview Lab → · Contrast checker → · Palette generator →

#341E77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva