#41187F#41187F

#41187F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.158 H 294.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#41187F
RGBrgb(65, 24, 127)
HSLhsl(264, 68%, 30%)
HSVhsv(264, 81%, 50%)
CMYKcmyk(48.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(21.24, 42.21, -50.19)
CIE-LCHlch(21.24, 65.58, 310.06°)
OKLaboklab(34.03% 0.0652 -0.144)
OKLCHoklch(34.03% 0.158 294.3)
XYZxyz(6.3363, 3.3092, 20.3794)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41187F #567F18
analogous
#18237F #41187F #74187F
triadic
#41187F #7F4118 #187F41
tetradic
#41187F #7F1823 #567F18 #187F74
square
#41187F #7F1823 #567F18 #187F74
split-complementary
#41187F #7F7418 #237F18
monochromatic
#0D051A #270E4C #41187F #5B22B2 #7838D9

Accessibility & contrast

On white

12.64
#41187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#41187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41187F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41187F#FFFFFF#000000##FFFFFF
##41187F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#2E354B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #41187f;
/* rgb */ color: rgb(65, 24, 127);
/* oklch */ color: oklch(34.0% 0.158 294.3);
Tailwind
colors: {
  custom: {
    50: '#7d5aa5',
    500: '#41187f',
    950: '#000000',
  },
}
SCSS
$custom: #41187f;
$custom-light: #7d5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#41187f",
  "rgb": {
    "r": 65,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 263.883,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34028,
    "c": 0.15805,
    "h": 294.3
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#41187F
secondary
#85B33F
accent
#EB3DA6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #41187F

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

Preview Lab → · Contrast checker → · Palette generator →

#41187F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva