#341A54#341A54

#341A54 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.101 H 300.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#341A54
RGBrgb(52, 26, 84)
HSLhsl(267, 53%, 22%)
HSVhsv(267, 69%, 33%)
CMYKcmyk(38.1%, 69%, 0%, 67.1%)
CIE-LABlab(16.05, 26.37, -30.60)
CIE-LCHlch(16.05, 40.40, 310.75°)
OKLaboklab(28.77% 0.0519 -0.087)
OKLCHoklch(28.77% 0.101 300.8)
XYZxyz(3.3854, 2.1089, 8.6145)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A54 #3A541A
analogous
#1A1D54 #341A54 #511A54
triadic
#341A54 #54341A #1A5434
tetradic
#341A54 #541A1D #3A541A #1A5451
square
#341A54 #541A1D #3A541A #1A5451
split-complementary
#341A54 #54511A #1D541A
monochromatic
#0E0717 #170C25 #341A54 #512883 #6E37B1

Accessibility & contrast

On white

14.77
#341A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A54
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A54#FFFFFF#000000##FFFFFF
##341A541.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#042853
Tritanopia (blue-blind)
#2D2734
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341a54;
/* rgb */ color: rgb(52, 26, 84);
/* oklch */ color: oklch(28.8% 0.101 300.8);
Tailwind
colors: {
  custom: {
    50: '#6e5885',
    500: '#341a54',
    950: '#000000',
  },
}
SCSS
$custom: #341a54;
$custom-light: #6e5885;
$custom-dark: #000000;
JSON
{
  "hex": "#341a54",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 266.897,
    "s": 52.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28769,
    "c": 0.10125,
    "h": 300.8
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#341A54
secondary
#698A40
accent
#DC4C9B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341A54

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

Preview Lab → · Contrast checker → · Palette generator →

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