#341766#341766

#341766 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.129 H 293.9°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#341766
RGBrgb(52, 23, 102)
HSLhsl(262, 63%, 25%)
HSVhsv(262, 77%, 40%)
CMYKcmyk(49%, 77.5%, 0%, 60%)
CIE-LABlab(17.00, 33.41, -41.07)
CIE-LCHlch(17.00, 52.94, 309.13°)
OKLaboklab(29.94% 0.0522 -0.1177)
OKLCHoklch(29.94% 0.129 293.9)
XYZxyz(4.1202, 2.3020, 12.7950)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341766 #496617
analogous
#172266 #341766 #5C1766
triadic
#341766 #663417 #176634
tetradic
#341766 #661722 #496617 #17665C
square
#341766 #661722 #496617 #17665C
split-complementary
#341766 #665C17 #226617
monochromatic
#0D0619 #1B0C34 #341766 #4D2298 #672ECA

Accessibility & contrast

On white

14.38
#341766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#341766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341766
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341766#FFFFFF#000000##FFFFFF
##3417661.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341766;
/* rgb */ color: rgb(52, 23, 102);
/* oklch */ color: oklch(29.9% 0.129 293.9);
Tailwind
colors: {
  custom: {
    50: '#715792',
    500: '#341766',
    950: '#000000',
  },
}
SCSS
$custom: #341766;
$custom-light: #715792;
$custom-dark: #000000;
JSON
{
  "hex": "#341766",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 262.025,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29939,
    "c": 0.12875,
    "h": 293.9
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#341766
secondary
#799C3C
accent
#E642AA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #341766

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

Preview Lab → · Contrast checker → · Palette generator →

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