#341987#341987

#341987 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 284.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#341987
RGBrgb(52, 25, 135)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 81%, 53%)
CMYKcmyk(61.5%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.73, 42.26, -56.14)
CIE-LCHlch(20.73, 70.27, 306.97°)
OKLaboklab(33.57% 0.0407 -0.1618)
OKLCHoklch(33.57% 0.167 284.1)
XYZxyz(6.1356, 3.1742, 23.2063)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341987 #6C8719
analogous
#193587 #341987 #6B1987
triadic
#341987 #873419 #198734
tetradic
#341987 #871935 #6C8719 #19876B
square
#341987 #871935 #6C8719 #19876B
split-complementary
#341987 #876B19 #358719
monochromatic
#0C0620 #200F53 #341987 #4823BB #653FDB

Accessibility & contrast

On white

12.84
#341987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341987
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341987#FFFFFF#000000##FFFFFF
##3419871.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341987;
/* rgb */ color: rgb(52, 25, 135);
/* oklch */ color: oklch(33.6% 0.167 284.1);
Tailwind
colors: {
  custom: {
    50: '#775aab',
    500: '#341987',
    950: '#000000',
  },
}
SCSS
$custom: #341987;
$custom-light: #775aab;
$custom-dark: #000000;
JSON
{
  "hex": "#341987",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 254.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33572,
    "c": 0.16687,
    "h": 284.1
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#341987
secondary
#9DBA41
accent
#EC3CC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341987

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

Preview Lab → · Contrast checker → · Palette generator →

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