#341894#341894

#341894 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.183 H 281.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#341894
RGBrgb(52, 24, 148)
HSLhsl(254, 72%, 34%)
HSVhsv(254, 84%, 58%)
CMYKcmyk(64.9%, 83.8%, 0%, 42%)
CIE-LABlab(22.02, 46.56, -62.11)
CIE-LCHlch(22.02, 77.63, 306.86°)
OKLaboklab(34.89% 0.0369 -0.1792)
OKLCHoklch(34.89% 0.183 281.6)
XYZxyz(7.0864, 3.5209, 28.3174)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341894 #789418
analogous
#183A94 #341894 #721894
triadic
#341894 #943418 #189434
tetradic
#341894 #94183A #789418 #189472
square
#341894 #94183A #789418 #189472
split-complementary
#341894 #947218 #3A9418
monochromatic
#0F072B #210F5F #341894 #4721C9 #6945E1

Accessibility & contrast

On white

12.32
#341894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341894
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341894#FFFFFF#000000##FFFFFF
##3418941.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341894;
/* rgb */ color: rgb(52, 24, 148);
/* oklch */ color: oklch(34.9% 0.183 281.6);
Tailwind
colors: {
  custom: {
    50: '#7a5bb5',
    500: '#341894',
    950: '#000000',
  },
}
SCSS
$custom: #341894;
$custom-light: #7a5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341894",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 253.548,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.18297,
    "h": 281.6
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#341894
secondary
#A6C246
accent
#EF39C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341894

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

Preview Lab → · Contrast checker → · Palette generator →

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