#341A4E#341A4E

#341A4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.093 H 304.1°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#341A4E
RGBrgb(52, 26, 78)
HSLhsl(270, 50%, 20%)
HSVhsv(270, 67%, 31%)
CMYKcmyk(33.3%, 66.7%, 0%, 69.4%)
CIE-LABlab(15.59, 24.64, -27.27)
CIE-LCHlch(15.59, 36.75, 312.10°)
OKLaboklab(28.29% 0.0522 -0.0772)
OKLCHoklch(28.29% 0.093 304.1)
XYZxyz(3.1604, 2.0189, 7.4294)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A4E #344E1A
analogous
#1A1A4E #341A4E #4E1A4E
triadic
#341A4E #4E341A #1A4E34
tetradic
#341A4E #4E1A1A #344E1A #1A4E4E
square
#341A4E #4E1A1A #344E1A #1A4E4E
split-complementary
#341A4E #4E4E1A #1A4E1A
monochromatic
#0F0817 #150B20 #341A4E #53297C #7139AA

Accessibility & contrast

On white

14.96
#341A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A4E
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A4E#FFFFFF#000000##FFFFFF
##341A4E1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341a4e;
/* rgb */ color: rgb(52, 26, 78);
/* oklch */ color: oklch(28.3% 0.093 304.1);
Tailwind
colors: {
  custom: {
    50: '#6e5880',
    500: '#341a4e',
    950: '#000000',
  },
}
SCSS
$custom: #341a4e;
$custom-light: #6e5880;
$custom-dark: #000000;
JSON
{
  "hex": "#341a4e",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.09317,
    "h": 304.1
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#341A4E
secondary
#628440
accent
#DA4E94
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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