#41287F#41287F

#41287F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.139 H 291.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#41287F
RGBrgb(65, 40, 127)
HSLhsl(257, 52%, 33%)
HSVhsv(257, 69%, 50%)
CMYKcmyk(48.8%, 68.5%, 0%, 50.2%)
CIE-LABlab(24.24, 33.81, -45.30)
CIE-LCHlch(24.24, 56.53, 306.74°)
OKLaboklab(36.15% 0.0499 -0.1297)
OKLCHoklch(36.15% 0.139 291)
XYZxyz(6.7685, 4.1735, 20.5235)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41287F #667F28
analogous
#283B7F #41287F #6C287F
triadic
#41287F #7F4128 #287F41
tetradic
#41287F #7F283B #667F28 #287F6C
square
#41287F #7F283B #667F28 #287F6C
split-complementary
#41287F #7F6C28 #3B7F28
monochromatic
#110B22 #291950 #41287F #5937AE #7857CA

Accessibility & contrast

On white

11.45
#41287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#41287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41287F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41287F#FFFFFF#000000##FFFFFF
##41287F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#2E3D50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #41287f;
/* rgb */ color: rgb(65, 40, 127);
/* oklch */ color: oklch(36.2% 0.139 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c64a5',
    500: '#41287f',
    950: '#000000',
  },
}
SCSS
$custom: #41287f;
$custom-light: #7c64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#41287f",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 257.241,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36151,
    "c": 0.13896,
    "h": 291
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#41287F
secondary
#95AF54
accent
#DC4CB2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #41287F

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

Preview Lab → · Contrast checker → · Palette generator →

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