#413271#413271

#413271 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.8% C 0.104 H 291.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#413271
RGBrgb(65, 50, 113)
HSLhsl(254, 39%, 32%)
HSVhsv(254, 56%, 44%)
CMYKcmyk(42.5%, 55.8%, 0%, 55.7%)
CIE-LABlab(25.55, 23.24, -34.28)
CIE-LCHlch(25.55, 41.41, 304.14°)
OKLaboklab(36.78% 0.0381 -0.0973)
OKLCHoklch(36.78% 0.104 291.4)
XYZxyz(6.3004, 4.5971, 16.1750)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#413271 #627132
analogous
#324371 #413271 #613271
triadic
#413271 #714132 #327141
tetradic
#413271 #713243 #627132 #327161
square
#413271 #713243 #627132 #327161
split-complementary
#413271 #716132 #437132
monochromatic
#100C1C #291F47 #413271 #59459B #7863BA

Accessibility & contrast

On white

10.94
#413271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#413271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #413271
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##413271#FFFFFF#000000##FFFFFF
##4132711.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#343F4C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #413271;
/* rgb */ color: rgb(65, 50, 113);
/* oklch */ color: oklch(36.8% 0.104 291.4);
Tailwind
colors: {
  custom: {
    50: '#796a9a',
    500: '#413271',
    950: '#000000',
  },
}
SCSS
$custom: #413271;
$custom-light: #796a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#413271",
  "rgb": {
    "r": 65,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 254.286,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36779,
    "c": 0.10448,
    "h": 291.4
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#413271
secondary
#91A25D
accent
#CF59B3
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #413271

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

Preview Lab → · Contrast checker → · Palette generator →

#413271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva