#41227F#41227F

#41227F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.147 H 292.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#41227F
RGBrgb(65, 34, 127)
HSLhsl(260, 58%, 32%)
HSVhsv(260, 73%, 50%)
CMYKcmyk(48.8%, 73.2%, 0%, 50.2%)
CIE-LABlab(23.00, 37.22, -47.32)
CIE-LCHlch(23.00, 60.20, 308.19°)
OKLaboklab(35.27% 0.0561 -0.1356)
OKLCHoklch(35.27% 0.147 292.5)
XYZxyz(6.5817, 3.8000, 20.4612)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#41227F #607F22
analogous
#22327F #41227F #70227F
triadic
#41227F #7F4122 #227F41
tetradic
#41227F #7F2232 #607F22 #227F70
square
#41227F #7F2232 #607F22 #227F70
split-complementary
#41227F #7F7022 #327F22
monochromatic
#10081E #28154F #41227F #5A2FAF #784CCF

Accessibility & contrast

On white

11.93
#41227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#41227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #41227F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##41227F#FFFFFF#000000##FFFFFF
##41227F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#2E3A4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #41227f;
/* rgb */ color: rgb(65, 34, 127);
/* oklch */ color: oklch(35.3% 0.147 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c60a5',
    500: '#41227f',
    950: '#000000',
  },
}
SCSS
$custom: #41227f;
$custom-light: #7c60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#41227f",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 260,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.14678,
    "h": 292.5
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#41227F
secondary
#8FB24B
accent
#E147AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #41227F

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

Preview Lab → · Contrast checker → · Palette generator →

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