#341E78#341E78

#341E78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.143 H 286.7°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#341E78
RGBrgb(52, 30, 120)
HSLhsl(255, 60%, 29%)
HSVhsv(255, 75%, 47%)
CMYKcmyk(56.7%, 75%, 0%, 52.9%)
CIE-LABlab(20.10, 35.05, -47.66)
CIE-LCHlch(20.10, 59.16, 306.33°)
OKLaboklab(32.67% 0.0412 -0.1371)
OKLCHoklch(32.67% 0.143 286.7)
XYZxyz(5.2696, 3.0144, 18.0698)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E78 #62781E
analogous
#1E3578 #341E78 #611E78
triadic
#341E78 #78341E #1E7834
tetradic
#341E78 #781E35 #62781E #1E7861
square
#341E78 #781E35 #62781E #1E7861
split-complementary
#341E78 #78611E #35781E
monochromatic
#0B0618 #1F1247 #341E78 #492AA9 #6441CF

Accessibility & contrast

On white

13.10
#341E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341E78
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E78#FFFFFF#000000##FFFFFF
##341E781.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#173649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341e78;
/* rgb */ color: rgb(52, 30, 120);
/* oklch */ color: oklch(32.7% 0.143 286.7);
Tailwind
colors: {
  custom: {
    50: '#745ca0',
    500: '#341e78',
    950: '#000000',
  },
}
SCSS
$custom: #341e78;
$custom-light: #745ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#341e78",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 254.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32666,
    "c": 0.14314,
    "h": 286.7
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#341E78
secondary
#93AC46
accent
#E345BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341E78

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

Preview Lab → · Contrast checker → · Palette generator →

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