#341E56#341E56

#341E56 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.097 H 298.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#341E56
RGBrgb(52, 30, 86)
HSLhsl(264, 48%, 23%)
HSVhsv(264, 65%, 34%)
CMYKcmyk(39.5%, 65.1%, 0%, 66.3%)
CIE-LABlab(17.13, 24.47, -30.20)
CIE-LCHlch(17.13, 38.87, 309.01°)
OKLaboklab(29.61% 0.0463 -0.0858)
OKLCHoklch(29.61% 0.097 298.3)
XYZxyz(3.5597, 2.3305, 9.0646)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E56 #40561E
analogous
#1E2456 #341E56 #501E56
triadic
#341E56 #56341E #1E5634
tetradic
#341E56 #561E24 #40561E #1E5650
square
#341E56 #561E24 #40561E #1E5650
split-complementary
#341E56 #56501E #24561E
monochromatic
#0E0817 #190E29 #341E56 #4F2E83 #6B3EB1

Accessibility & contrast

On white

14.32
#341E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E56
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E56#FFFFFF#000000##FFFFFF
##341E561.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#082A55
Tritanopia (blue-blind)
#2C2A36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341e56;
/* rgb */ color: rgb(52, 30, 86);
/* oklch */ color: oklch(29.6% 0.097 298.3);
Tailwind
colors: {
  custom: {
    50: '#6e5b86',
    500: '#341e56',
    950: '#000000',
  },
}
SCSS
$custom: #341e56;
$custom-light: #6e5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#341e56",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 263.571,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29607,
    "c": 0.09747,
    "h": 298.3
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#341E56
secondary
#6F8B45
accent
#D850A2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #341E56

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

Preview Lab → · Contrast checker → · Palette generator →

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