#310F41#310F41

#310F41 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.094 H 312.9°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#310F41
RGBrgb(49, 15, 65)
HSLhsl(281, 63%, 16%)
HSVhsv(281, 77%, 25%)
CMYKcmyk(24.6%, 76.9%, 0%, 74.5%)
CIE-LABlab(11.80, 26.69, -24.35)
CIE-LCHlch(11.80, 36.13, 317.62°)
OKLaboklab(25.13% 0.0638 -0.0686)
OKLCHoklch(25.13% 0.094 312.9)
XYZxyz(2.3914, 1.3763, 5.1397)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F41 #1F410F
analogous
#180F41 #310F41 #410F38
triadic
#310F41 #41310F #0F4131
tetradic
#310F41 #41180F #1F410F #0F3841
square
#310F41 #41180F #1F410F #0F3841
split-complementary
#310F41 #38410F #0F4118
monochromatic
#130619 #130619 #310F41 #561A73 #7C26A4

Accessibility & contrast

On white

16.47
#310F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F41
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F41#FFFFFF#000000##FFFFFF
##310F411.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#2F1926
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310f41;
/* rgb */ color: rgb(49, 15, 65);
/* oklch */ color: oklch(25.1% 0.094 312.9);
Tailwind
colors: {
  custom: {
    50: '#6b5076',
    500: '#310f41',
    950: '#000000',
  },
}
SCSS
$custom: #310f41;
$custom-light: #6b5076;
$custom-dark: #000000;
JSON
{
  "hex": "#310f41",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 280.8,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25134,
    "c": 0.09369,
    "h": 312.9
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#310F41
secondary
#487B30
accent
#E64277
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310F41

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

Preview Lab → · Contrast checker → · Palette generator →

#310F41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva