#341866#341866

#341866 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.128 H 293.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#341866
RGBrgb(52, 24, 102)
HSLhsl(262, 62%, 25%)
HSVhsv(262, 76%, 40%)
CMYKcmyk(49%, 76.5%, 0%, 60%)
CIE-LABlab(17.19, 32.87, -40.75)
CIE-LCHlch(17.19, 52.35, 308.88°)
OKLaboklab(30.08% 0.0512 -0.1168)
OKLCHoklch(30.08% 0.128 293.7)
XYZxyz(4.1404, 2.3425, 12.8018)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341866 #4A6618
analogous
#182366 #341866 #5B1866
triadic
#341866 #663418 #186634
tetradic
#341866 #661823 #4A6618 #18665B
square
#341866 #661823 #4A6618 #18665B
split-complementary
#341866 #665B18 #236618
monochromatic
#0D0619 #1B0C34 #341866 #4D2498 #672FC9

Accessibility & contrast

On white

14.30
#341866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341866
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341866#FFFFFF#000000##FFFFFF
##3418661.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#252C3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341866;
/* rgb */ color: rgb(52, 24, 102);
/* oklch */ color: oklch(30.1% 0.128 293.7);
Tailwind
colors: {
  custom: {
    50: '#715892',
    500: '#341866',
    950: '#000000',
  },
}
SCSS
$custom: #341866;
$custom-light: #715892;
$custom-dark: #000000;
JSON
{
  "hex": "#341866",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 261.538,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30075,
    "c": 0.1275,
    "h": 293.7
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#341866
secondary
#7A9C3E
accent
#E543AB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #341866

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

Preview Lab → · Contrast checker → · Palette generator →

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