#41227E#41227E

#41227E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.146 H 292.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#41227E
RGBrgb(65, 34, 126)
HSLhsl(260, 58%, 31%)
HSVhsv(260, 73%, 49%)
CMYKcmyk(48.4%, 73%, 0%, 50.6%)
CIE-LABlab(22.91, 36.93, -46.83)
CIE-LCHlch(22.91, 59.64, 308.26°)
OKLaboklab(35.17% 0.0564 -0.1342)
OKLCHoklch(35.17% 0.146 292.8)
XYZxyz(6.5169, 3.7740, 20.1197)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41227E #5F7E22
analogous
#22317E #41227E #6F227E
triadic
#41227E #7E4122 #227E41
tetradic
#41227E #7E2231 #5F7E22 #227E6F
square
#41227E #7E2231 #5F7E22 #227E6F
split-complementary
#41227E #7E6F22 #317E22
monochromatic
#0F081E #28154E #41227E #5A2FAE #784CCF

Accessibility & contrast

On white

11.97
#41227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#41227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41227E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41227E#FFFFFF#000000##FFFFFF
##41227E1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#2E394D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #41227e;
/* rgb */ color: rgb(65, 34, 126);
/* oklch */ color: oklch(35.2% 0.146 292.8);
Tailwind
colors: {
  custom: {
    50: '#7c60a4',
    500: '#41227e',
    950: '#000000',
  },
}
SCSS
$custom: #41227e;
$custom-light: #7c60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#41227e",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 260.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.14554,
    "h": 292.8
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#41227E
secondary
#8EB14B
accent
#E147AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41227E

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

Preview Lab → · Contrast checker → · Palette generator →

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