#311041#311041

#311041 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.092 H 312.7°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#311041
RGBrgb(49, 16, 65)
HSLhsl(280, 60%, 16%)
HSVhsv(280, 75%, 25%)
CMYKcmyk(24.6%, 75.4%, 0%, 74.5%)
CIE-LABlab(11.99, 26.15, -24.04)
CIE-LCHlch(11.99, 35.52, 317.41°)
OKLaboklab(25.27% 0.0624 -0.0677)
OKLCHoklch(25.27% 0.092 312.7)
XYZxyz(2.4059, 1.4053, 5.1445)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311041 #204110
analogous
#181041 #311041 #411038
triadic
#311041 #413110 #104131
tetradic
#311041 #411810 #204110 #103841
square
#311041 #411810 #204110 #103841
split-complementary
#311041 #384110 #104118
monochromatic
#130619 #130619 #311041 #561C72 #7B28A3

Accessibility & contrast

On white

16.39
#311041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#311041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311041
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311041#FFFFFF#000000##FFFFFF
##3110411.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0C2040
Tritanopia (blue-blind)
#2F1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311041;
/* rgb */ color: rgb(49, 16, 65);
/* oklch */ color: oklch(25.3% 0.092 312.7);
Tailwind
colors: {
  custom: {
    50: '#6b5176',
    500: '#311041',
    950: '#000000',
  },
}
SCSS
$custom: #311041;
$custom-light: #6b5176;
$custom-dark: #000000;
JSON
{
  "hex": "#311041",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 280.408,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25273,
    "c": 0.09211,
    "h": 312.7
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#311041
secondary
#4A7B32
accent
#E44478
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #311041

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

Preview Lab → · Contrast checker → · Palette generator →

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