#41178D#41178D

#41178D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.175 H 290.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#41178D
RGBrgb(65, 23, 141)
HSLhsl(261, 72%, 32%)
HSVhsv(261, 84%, 55%)
CMYKcmyk(53.9%, 83.7%, 0%, 44.7%)
CIE-LABlab(22.51, 46.47, -56.91)
CIE-LCHlch(22.51, 73.47, 309.23°)
OKLaboklab(35.34% 0.0611 -0.1636)
OKLCHoklch(35.34% 0.175 290.5)
XYZxyz(7.2927, 3.6594, 25.5162)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41178D #638D17
analogous
#17288D #41178D #7C178D
triadic
#41178D #8D4117 #178D41
tetradic
#41178D #8D1728 #638D17 #178D7C
square
#41178D #8D1728 #638D17 #178D7C
split-complementary
#41178D #8D7C17 #288D17
monochromatic
#100624 #290E58 #41178D #5920C2 #783FE0

Accessibility & contrast

On white

12.12
#41178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#41178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41178D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41178D#FFFFFF#000000##FFFFFF
##41178D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#253B53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41178d;
/* rgb */ color: rgb(65, 23, 141);
/* oklch */ color: oklch(35.3% 0.175 290.5);
Tailwind
colors: {
  custom: {
    50: '#7f5baf',
    500: '#41178d',
    950: '#000000',
  },
}
SCSS
$custom: #41178d;
$custom-light: #7f5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#41178d",
  "rgb": {
    "r": 65,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 261.356,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35336,
    "c": 0.17464,
    "h": 290.5
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#41178D
secondary
#92C040
accent
#EF39AE
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #41178D

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

Preview Lab → · Contrast checker → · Palette generator →

#41178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva