#341666#341666

#341666 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.130 H 294.1°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#341666
RGBrgb(52, 22, 102)
HSLhsl(263, 65%, 24%)
HSVhsv(263, 78%, 40%)
CMYKcmyk(49%, 78.4%, 0%, 60%)
CIE-LABlab(16.81, 33.94, -41.37)
CIE-LCHlch(16.81, 53.51, 309.36°)
OKLaboklab(29.81% 0.0532 -0.1186)
OKLCHoklch(29.81% 0.13 294.1)
XYZxyz(4.1007, 2.2631, 12.7886)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341666 #486616
analogous
#162066 #341666 #5C1666
triadic
#341666 #663416 #166634
tetradic
#341666 #661620 #486616 #16665C
square
#341666 #661620 #486616 #16665C
split-complementary
#341666 #665C16 #206616
monochromatic
#0D0519 #1A0B34 #341666 #4E2198 #672CCB

Accessibility & contrast

On white

14.46
#341666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#341666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341666
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341666#FFFFFF#000000##FFFFFF
##3416661.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#252B3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341666;
/* rgb */ color: rgb(52, 22, 102);
/* oklch */ color: oklch(29.8% 0.130 294.1);
Tailwind
colors: {
  custom: {
    50: '#715692',
    500: '#341666',
    950: '#000000',
  },
}
SCSS
$custom: #341666;
$custom-light: #715692;
$custom-dark: #000000;
JSON
{
  "hex": "#341666",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 262.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29807,
    "c": 0.12996,
    "h": 294.1
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#341666
secondary
#789D3B
accent
#E840A9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #341666

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

Preview Lab → · Contrast checker → · Palette generator →

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