#41227B#41227B

#41227B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.142 H 293.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#41227B
RGBrgb(65, 34, 123)
HSLhsl(261, 57%, 31%)
HSVhsv(261, 72%, 48%)
CMYKcmyk(47.2%, 72.4%, 0%, 51.8%)
CIE-LABlab(22.65, 36.05, -45.36)
CIE-LCHlch(22.65, 57.94, 308.48°)
OKLaboklab(34.9% 0.0569 -0.1299)
OKLCHoklch(34.9% 0.142 293.7)
XYZxyz(6.3262, 3.6977, 19.1155)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41227B #5C7B22
analogous
#222F7B #41227B #6D227B
triadic
#41227B #7B4122 #227B41
tetradic
#41227B #7B222F #5C7B22 #227B6D
square
#41227B #7B222F #5C7B22 #227B6D
split-complementary
#41227B #7B6D22 #2F7B22
monochromatic
#0E071B #28154B #41227B #5A2FAB #784ACD

Accessibility & contrast

On white

12.07
#41227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#41227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41227B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41227B#FFFFFF#000000##FFFFFF
##41227B1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#30384C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41227b;
/* rgb */ color: rgb(65, 34, 123);
/* oklch */ color: oklch(34.9% 0.142 293.7);
Tailwind
colors: {
  custom: {
    50: '#7b60a2',
    500: '#41227b',
    950: '#000000',
  },
}
SCSS
$custom: #41227b;
$custom-light: #7b60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#41227b",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 260.899,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.1418,
    "h": 293.7
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#41227B
secondary
#8BAE4B
accent
#E048AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41227B

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

Preview Lab → · Contrast checker → · Palette generator →

#41227B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva