#341A52#341A52

#341A52 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.099 H 301.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#341A52
RGBrgb(52, 26, 82)
HSLhsl(268, 52%, 21%)
HSVhsv(268, 68%, 32%)
CMYKcmyk(36.6%, 68.3%, 0%, 67.8%)
CIE-LABlab(15.89, 25.79, -29.50)
CIE-LCHlch(15.89, 39.18, 311.16°)
OKLaboklab(28.61% 0.052 -0.0837)
OKLCHoklch(28.61% 0.099 301.9)
XYZxyz(3.3082, 2.0780, 8.2078)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A52 #38521A
analogous
#1A1C52 #341A52 #501A52
triadic
#341A52 #52341A #1A5234
tetradic
#341A52 #521A1C #38521A #1A5250
square
#341A52 #521A1C #38521A #1A5250
split-complementary
#341A52 #52501A #1C521A
monochromatic
#0F0717 #170B24 #341A52 #512980 #6F37AF

Accessibility & contrast

On white

14.83
#341A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A52
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A52#FFFFFF#000000##FFFFFF
##341A521.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#072751
Tritanopia (blue-blind)
#2E2633
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341a52;
/* rgb */ color: rgb(52, 26, 82);
/* oklch */ color: oklch(28.6% 0.099 301.9);
Tailwind
colors: {
  custom: {
    50: '#6e5883',
    500: '#341a52',
    950: '#000000',
  },
}
SCSS
$custom: #341a52;
$custom-light: #6e5883;
$custom-dark: #000000;
JSON
{
  "hex": "#341a52",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 267.857,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28605,
    "c": 0.09856,
    "h": 301.9
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#341A52
secondary
#668840
accent
#DB4C99
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341A52

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

Preview Lab → · Contrast checker → · Palette generator →

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