#341A7C#341A7C

#341A7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.153 H 286.5°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#341A7C
RGBrgb(52, 26, 124)
HSLhsl(256, 65%, 29%)
HSVhsv(256, 79%, 49%)
CMYKcmyk(58.1%, 79%, 0%, 51.4%)
CIE-LABlab(19.74, 38.45, -50.82)
CIE-LCHlch(19.74, 63.72, 307.11°)
OKLaboklab(32.53% 0.0434 -0.1463)
OKLCHoklch(32.53% 0.153 286.5)
XYZxyz(5.4226, 2.9238, 19.3435)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A7C #627C1A
analogous
#1A317C #341A7C #651A7C
triadic
#341A7C #7C341A #1A7C34
tetradic
#341A7C #7C1A31 #627C1A #1A7C65
square
#341A7C #7C1A31 #627C1A #1A7C65
split-complementary
#341A7C #7C651A #317C1A
monochromatic
#0B0519 #1F0F49 #341A7C #4925AF #643BD6

Accessibility & contrast

On white

13.25
#341A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#341A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A7C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A7C#FFFFFF#000000##FFFFFF
##341A7C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#13364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341a7c;
/* rgb */ color: rgb(52, 26, 124);
/* oklch */ color: oklch(32.5% 0.153 286.5);
Tailwind
colors: {
  custom: {
    50: '#755aa3',
    500: '#341a7c',
    950: '#000000',
  },
}
SCSS
$custom: #341a7c;
$custom-light: #755aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#341a7c",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 255.918,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3253,
    "c": 0.1526,
    "h": 286.5
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#341A7C
secondary
#93B042
accent
#E840BC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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