#341A5B#341A5B

#341A5B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.111 H 297.5°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#341A5B
RGBrgb(52, 26, 91)
HSLhsl(264, 56%, 23%)
HSVhsv(264, 71%, 36%)
CMYKcmyk(42.9%, 71.4%, 0%, 64.3%)
CIE-LABlab(16.62, 28.44, -34.38)
CIE-LCHlch(16.62, 44.62, 309.59°)
OKLaboklab(29.36% 0.0511 -0.0981)
OKLCHoklch(29.36% 0.111 297.5)
XYZxyz(3.6734, 2.2241, 10.1313)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A5B #415B1A
analogous
#1A205B #341A5B #541A5B
triadic
#341A5B #5B341A #1A5B34
tetradic
#341A5B #5B1A20 #415B1A #1A5B54
square
#341A5B #5B1A20 #415B1A #1A5B54
split-complementary
#341A5B #5B541A #205B1A
monochromatic
#0E0718 #190C2B #341A5B #4F288B #6A35BA

Accessibility & contrast

On white

14.53
#341A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#341A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A5B
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A5B#FFFFFF#000000##FFFFFF
##341A5B1.0014.531.4414.53
#FFFFFF14.531.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#2A2938
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341a5b;
/* rgb */ color: rgb(52, 26, 91);
/* oklch */ color: oklch(29.4% 0.111 297.5);
Tailwind
colors: {
  custom: {
    50: '#6f588a',
    500: '#341a5b',
    950: '#000000',
  },
}
SCSS
$custom: #341a5b;
$custom-light: #6f588a;
$custom-dark: #000000;
JSON
{
  "hex": "#341a5b",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 264,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29363,
    "c": 0.11057,
    "h": 297.5
  },
  "luminance": 0.02224
}

Semantic roles & 50–950 ramp

primary
#341A5B
secondary
#719140
accent
#DF49A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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