#341A4F#341A4F

#341A4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.095 H 303.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#341A4F
RGBrgb(52, 26, 79)
HSLhsl(269, 50%, 21%)
HSVhsv(269, 67%, 31%)
CMYKcmyk(34.2%, 67.1%, 0%, 69%)
CIE-LABlab(15.66, 24.92, -27.83)
CIE-LCHlch(15.66, 37.36, 311.84°)
OKLaboklab(28.36% 0.0522 -0.0788)
OKLCHoklch(28.36% 0.095 303.5)
XYZxyz(3.1965, 2.0334, 7.6197)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A4F #354F1A
analogous
#1A1A4F #341A4F #4E1A4F
triadic
#341A4F #4F341A #1A4F34
tetradic
#341A4F #4F1A1A #354F1A #1A4F4E
square
#341A4F #4F1A1A #354F1A #1A4F4E
split-complementary
#341A4F #4F4E1A #1A4F1A
monochromatic
#0F0817 #160B21 #341A4F #52297D #7138AB

Accessibility & contrast

On white

14.93
#341A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#341A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A4F
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A4F#FFFFFF#000000##FFFFFF
##341A4F1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#0C274E
Tritanopia (blue-blind)
#2F2531
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341a4f;
/* rgb */ color: rgb(52, 26, 79);
/* oklch */ color: oklch(28.4% 0.095 303.5);
Tailwind
colors: {
  custom: {
    50: '#6e5881',
    500: '#341a4f',
    950: '#000000',
  },
}
SCSS
$custom: #341a4f;
$custom-light: #6e5881;
$custom-dark: #000000;
JSON
{
  "hex": "#341a4f",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 269.434,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28364,
    "c": 0.09452,
    "h": 303.5
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#341A4F
secondary
#638540
accent
#DA4E95
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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