#41227C#41227C

#41227C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.143 H 293.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#41227C
RGBrgb(65, 34, 124)
HSLhsl(261, 57%, 31%)
HSVhsv(261, 73%, 49%)
CMYKcmyk(47.6%, 72.6%, 0%, 51.4%)
CIE-LABlab(22.73, 36.35, -45.85)
CIE-LCHlch(22.73, 58.51, 308.40°)
OKLaboklab(34.99% 0.0568 -0.1313)
OKLCHoklch(34.99% 0.143 293.4)
XYZxyz(6.3891, 3.7229, 19.4468)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41227C #5D7C22
analogous
#22307C #41227C #6E227C
triadic
#41227C #7C4122 #227C41
tetradic
#41227C #7C2230 #5D7C22 #227C6E
square
#41227C #7C2230 #5D7C22 #227C6E
split-complementary
#41227C #7C6E22 #307C22
monochromatic
#0F081C #28154C #41227C #5A2FAC #784BCE

Accessibility & contrast

On white

12.04
#41227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #41227C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41227C#FFFFFF#000000##FFFFFF
##41227C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#30394C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #41227c;
/* rgb */ color: rgb(65, 34, 124);
/* oklch */ color: oklch(35.0% 0.143 293.4);
Tailwind
colors: {
  custom: {
    50: '#7c60a3',
    500: '#41227c',
    950: '#000000',
  },
}
SCSS
$custom: #41227c;
$custom-light: #7c60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#41227c",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 260.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34993,
    "c": 0.14305,
    "h": 293.4
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#41227C
secondary
#8CAF4B
accent
#E048AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41227C

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

Preview Lab → · Contrast checker → · Palette generator →

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