#310A41#310A41

#310A41 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.101 H 313.9°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#310A41
RGBrgb(49, 10, 65)
HSLhsl(283, 73%, 15%)
HSVhsv(283, 85%, 25%)
CMYKcmyk(24.6%, 84.6%, 0%, 74.5%)
CIE-LABlab(10.93, 29.13, -25.74)
CIE-LCHlch(10.93, 38.88, 318.53°)
OKLaboklab(24.52% 0.0698 -0.0727)
OKLCHoklch(24.52% 0.101 313.9)
XYZxyz(2.3291, 1.2518, 5.1189)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A41 #1A410A
analogous
#150A41 #310A41 #410A36
triadic
#310A41 #41310A #0A4131
tetradic
#310A41 #41150A #1A410A #0A3641
square
#310A41 #41150A #1A410A #0A3641
split-complementary
#310A41 #36410A #0A4115
monochromatic
#14041B #14041B #310A41 #591276 #811AAB

Accessibility & contrast

On white

16.79
#310A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310A41
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A41#FFFFFF#000000##FFFFFF
##310A411.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#061E40
Tritanopia (blue-blind)
#2F1625
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310a41;
/* rgb */ color: rgb(49, 10, 65);
/* oklch */ color: oklch(24.5% 0.101 313.9);
Tailwind
colors: {
  custom: {
    50: '#6c4e76',
    500: '#310a41',
    950: '#000000',
  },
}
SCSS
$custom: #310a41;
$custom-light: #6c4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#310a41",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 282.545,
    "s": 73.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24518,
    "c": 0.10081,
    "h": 313.9
  },
  "luminance": 0.01252
}

Semantic roles & 50–950 ramp

primary
#310A41
secondary
#417E29
accent
#F0386D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A41

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

Preview Lab → · Contrast checker → · Palette generator →

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