#341854#341854

#341854 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.104 H 301.5°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#341854
RGBrgb(52, 24, 84)
HSLhsl(268, 56%, 21%)
HSVhsv(268, 71%, 33%)
CMYKcmyk(38.1%, 71.4%, 0%, 67.1%)
CIE-LABlab(15.61, 27.57, -31.31)
CIE-LCHlch(15.61, 41.72, 311.36°)
OKLaboklab(28.45% 0.0545 -0.089)
OKLCHoklch(28.45% 0.104 301.5)
XYZxyz(3.3427, 2.0234, 8.6002)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341854 #385418
analogous
#181A54 #341854 #521854
triadic
#341854 #543418 #185434
tetradic
#341854 #54181A #385418 #185452
square
#341854 #54181A #385418 #185452
split-complementary
#341854 #545218 #1A5418
monochromatic
#0F0718 #170A24 #341854 #512684 #6F33B3

Accessibility & contrast

On white

14.95
#341854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341854 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341854
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341854#FFFFFF#000000##FFFFFF
##3418541.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#012753
Tritanopia (blue-blind)
#2D2533
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341854;
/* rgb */ color: rgb(52, 24, 84);
/* oklch */ color: oklch(28.5% 0.104 301.5);
Tailwind
colors: {
  custom: {
    50: '#6f5785',
    500: '#341854',
    950: '#000000',
  },
}
SCSS
$custom: #341854;
$custom-light: #6f5785;
$custom-dark: #000000;
JSON
{
  "hex": "#341854",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 268,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28452,
    "c": 0.10439,
    "h": 301.5
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#341854
secondary
#668B3D
accent
#DF4999
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341854

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

Preview Lab → · Contrast checker → · Palette generator →

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