#341E52#341E52

#341E52 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.092 H 300.3°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#341E52
RGBrgb(52, 30, 82)
HSLhsl(265, 46%, 22%)
HSVhsv(265, 63%, 32%)
CMYKcmyk(36.6%, 63.4%, 0%, 67.8%)
CIE-LABlab(16.83, 23.27, -27.98)
CIE-LCHlch(16.83, 36.39, 309.75°)
OKLaboklab(29.29% 0.0464 -0.0793)
OKLCHoklch(29.29% 0.092 300.3)
XYZxyz(3.4031, 2.2678, 8.2394)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E52 #3C521E
analogous
#1E2252 #341E52 #4E1E52
triadic
#341E52 #52341E #1E5234
tetradic
#341E52 #521E22 #3C521E #1E524E
square
#341E52 #521E22 #3C521E #1E524E
split-complementary
#341E52 #524E1E #22521E
monochromatic
#0E0816 #180E25 #341E52 #502E7F #6D3FAC

Accessibility & contrast

On white

14.45
#341E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#341E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E52
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E52#FFFFFF#000000##FFFFFF
##341E521.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#2E2934
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341e52;
/* rgb */ color: rgb(52, 30, 82);
/* oklch */ color: oklch(29.3% 0.092 300.3);
Tailwind
colors: {
  custom: {
    50: '#6e5b83',
    500: '#341e52',
    950: '#000000',
  },
}
SCSS
$custom: #341e52;
$custom-light: #6e5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#341e52",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 265.385,
    "s": 46.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29292,
    "c": 0.09183,
    "h": 300.3
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#341E52
secondary
#6B8745
accent
#D6529E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #341E52

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

Preview Lab → · Contrast checker → · Palette generator →

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