#341E5E#341E5E

#341E5E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.109 H 294.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#341E5E
RGBrgb(52, 30, 94)
HSLhsl(261, 52%, 24%)
HSVhsv(261, 68%, 37%)
CMYKcmyk(44.7%, 68.1%, 0%, 63.1%)
CIE-LABlab(17.77, 26.91, -34.53)
CIE-LCHlch(17.77, 43.78, 307.93°)
OKLaboklab(30.27% 0.0457 -0.0985)
OKLCHoklch(30.27% 0.109 294.9)
XYZxyz(3.9003, 2.4667, 10.8581)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E5E #485E1E
analogous
#1E285E #341E5E #541E5E
triadic
#341E5E #5E341E #1E5E34
tetradic
#341E5E #5E1E28 #485E1E #1E5E54
square
#341E5E #5E1E28 #485E1E #1E5E54
split-complementary
#341E5E #5E541E #285E1E
monochromatic
#0D0717 #1A0F30 #341E5E #4E2D8C #673CBB

Accessibility & contrast

On white

14.06
#341E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#341E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E5E
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E5E#FFFFFF#000000##FFFFFF
##341E5E1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#292D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341e5e;
/* rgb */ color: rgb(52, 30, 94);
/* oklch */ color: oklch(30.3% 0.109 294.9);
Tailwind
colors: {
  custom: {
    50: '#6f5b8c',
    500: '#341e5e',
    950: '#000000',
  },
}
SCSS
$custom: #341e5e;
$custom-light: #6f5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#341e5e",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 94
  },
  "hsl": {
    "h": 260.625,
    "s": 51.613,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30268,
    "c": 0.10859,
    "h": 294.9
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#341E5E
secondary
#789345
accent
#DB4DAA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #341E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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