#341A56#341A56

#341A56 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.104 H 299.8°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#341A56
RGBrgb(52, 26, 86)
HSLhsl(266, 54%, 22%)
HSVhsv(266, 70%, 34%)
CMYKcmyk(39.5%, 69.8%, 0%, 66.3%)
CIE-LABlab(16.21, 26.96, -31.69)
CIE-LCHlch(16.21, 41.61, 310.38°)
OKLaboklab(28.94% 0.0517 -0.0902)
OKLCHoklch(28.94% 0.104 299.8)
XYZxyz(3.4649, 2.1407, 9.0329)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A56 #3C561A
analogous
#1A1E56 #341A56 #521A56
triadic
#341A56 #56341A #1A5634
tetradic
#341A56 #561A1E #3C561A #1A5652
square
#341A56 #561A1E #3C561A #1A5652
split-complementary
#341A56 #56521A #1E561A
monochromatic
#0E0717 #180C27 #341A56 #502885 #6D36B4

Accessibility & contrast

On white

14.70
#341A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#341A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A56
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A56#FFFFFF#000000##FFFFFF
##341A561.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#012855
Tritanopia (blue-blind)
#2C2735
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341a56;
/* rgb */ color: rgb(52, 26, 86);
/* oklch */ color: oklch(28.9% 0.104 299.8);
Tailwind
colors: {
  custom: {
    50: '#6f5886',
    500: '#341a56',
    950: '#000000',
  },
}
SCSS
$custom: #341a56;
$custom-light: #6f5886;
$custom-dark: #000000;
JSON
{
  "hex": "#341a56",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 266,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28935,
    "c": 0.10393,
    "h": 299.8
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#341A56
secondary
#6B8C40
accent
#DD4B9E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341A56

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

Preview Lab → · Contrast checker → · Palette generator →

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