#341E5B#341E5B

#341E5B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.104 H 296.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#341E5B
RGBrgb(52, 30, 91)
HSLhsl(262, 50%, 24%)
HSVhsv(262, 67%, 36%)
CMYKcmyk(42.9%, 67%, 0%, 64.3%)
CIE-LABlab(17.52, 25.99, -32.92)
CIE-LCHlch(17.52, 41.94, 308.29°)
OKLaboklab(30.02% 0.046 -0.0938)
OKLCHoklch(30.02% 0.104 296.1)
XYZxyz(3.7683, 2.4139, 10.1629)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E5B #455B1E
analogous
#1E265B #341E5B #521E5B
triadic
#341E5B #5B341E #1E5B34
tetradic
#341E5B #5B1E26 #455B1E #1E5B52
square
#341E5B #5B1E26 #455B1E #1E5B52
split-complementary
#341E5B #5B521E #265B1E
monochromatic
#0D0817 #1A0F2D #341E5B #4E2D89 #693CB7

Accessibility & contrast

On white

14.16
#341E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E5B
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E5B#FFFFFF#000000##FFFFFF
##341E5B1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#2A2C39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341e5b;
/* rgb */ color: rgb(52, 30, 91);
/* oklch */ color: oklch(30.0% 0.104 296.1);
Tailwind
colors: {
  custom: {
    50: '#6f5b8a',
    500: '#341e5b',
    950: '#000000',
  },
}
SCSS
$custom: #341e5b;
$custom-light: #6f5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#341e5b",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 261.639,
    "s": 50.413,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30016,
    "c": 0.10445,
    "h": 296.1
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#341E5B
secondary
#759045
accent
#DA4EA7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #341E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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