#341787#341787

#341787 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.169 H 284.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#341787
RGBrgb(52, 23, 135)
HSLhsl(256, 71%, 31%)
HSVhsv(256, 83%, 53%)
CMYKcmyk(61.5%, 83%, 0%, 47.1%)
CIE-LABlab(20.41, 43.20, -56.67)
CIE-LCHlch(20.41, 71.26, 307.32°)
OKLaboklab(33.35% 0.0419 -0.1633)
OKLCHoklch(33.35% 0.169 284.4)
XYZxyz(6.0944, 3.0917, 23.1926)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341787 #6A8717
analogous
#173287 #341787 #6C1787
triadic
#341787 #873417 #178734
tetradic
#341787 #871732 #6A8717 #17876C
square
#341787 #871732 #6A8717 #17876C
split-complementary
#341787 #876C17 #328717
monochromatic
#0C051E #200E53 #341787 #4820BB #653BDE

Accessibility & contrast

On white

12.98
#341787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341787
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341787#FFFFFF#000000##FFFFFF
##3417871.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341787;
/* rgb */ color: rgb(52, 23, 135);
/* oklch */ color: oklch(33.3% 0.169 284.4);
Tailwind
colors: {
  custom: {
    50: '#7759ab',
    500: '#341787',
    950: '#000000',
  },
}
SCSS
$custom: #341787;
$custom-light: #7759ab;
$custom-dark: #000000;
JSON
{
  "hex": "#341787",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 255.536,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.16865,
    "h": 284.4
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#341787
secondary
#9BBB3F
accent
#EE3ABF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341787

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

Preview Lab → · Contrast checker → · Palette generator →

#341787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva