#341166#341166

#341166 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.136 H 295.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#341166
RGBrgb(52, 17, 102)
HSLhsl(265, 71%, 23%)
HSVhsv(265, 83%, 40%)
CMYKcmyk(49%, 83.3%, 0%, 60%)
CIE-LABlab(15.95, 36.39, -42.78)
CIE-LCHlch(15.95, 56.16, 310.39°)
OKLaboklab(29.21% 0.0577 -0.1227)
OKLCHoklch(29.21% 0.136 295.2)
XYZxyz(4.0142, 2.0902, 12.7597)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341166 #436611
analogous
#111866 #341166 #5E1166
triadic
#341166 #663411 #116634
tetradic
#341166 #661118 #436611 #11665E
square
#341166 #661118 #436611 #11665E
split-complementary
#341166 #665E11 #186611
monochromatic
#0D041A #190832 #341166 #4F1A9A #6922CF

Accessibility & contrast

On white

14.81
#341166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341166
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341166#FFFFFF#000000##FFFFFF
##3411661.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#25293B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341166;
/* rgb */ color: rgb(52, 17, 102);
/* oklch */ color: oklch(29.2% 0.136 295.2);
Tailwind
colors: {
  custom: {
    50: '#725492',
    500: '#341166',
    950: '#000000',
  },
}
SCSS
$custom: #341166;
$custom-light: #725492;
$custom-dark: #000000;
JSON
{
  "hex": "#341166",
  "rgb": {
    "r": 52,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 264.706,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29206,
    "c": 0.13555,
    "h": 295.2
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#341166
secondary
#739E35
accent
#EE3AA4
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #341166

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

Preview Lab → · Contrast checker → · Palette generator →

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