#310A40#310A40

#310A40 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.100 H 314.6°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#310A40
RGBrgb(49, 10, 64)
HSLhsl(283, 73%, 15%)
HSVhsv(283, 84%, 25%)
CMYKcmyk(23.4%, 84.4%, 0%, 74.9%)
CIE-LABlab(10.85, 28.89, -25.17)
CIE-LCHlch(10.85, 38.32, 318.94°)
OKLaboklab(24.43% 0.07 -0.071)
OKLCHoklch(24.43% 0.1 314.6)
XYZxyz(2.3004, 1.2403, 4.9677)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310A40 #19400A
analogous
#160A40 #310A40 #400A34
triadic
#310A40 #40310A #0A4031
tetradic
#310A40 #40160A #19400A #0A3440
square
#310A40 #40160A #19400A #0A3440
split-complementary
#310A40 #34400A #0A4016
monochromatic
#14041A #14041A #310A40 #5A1275 #821BAA

Accessibility & contrast

On white

16.83
#310A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310A40
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310A40#FFFFFF#000000##FFFFFF
##310A401.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#301624
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310a40;
/* rgb */ color: rgb(49, 10, 64);
/* oklch */ color: oklch(24.4% 0.100 314.6);
Tailwind
colors: {
  custom: {
    50: '#6c4e75',
    500: '#310a40',
    950: '#000000',
  },
}
SCSS
$custom: #310a40;
$custom-light: #6c4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#310a40",
  "rgb": {
    "r": 49,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 283.333,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24433,
    "c": 0.09973,
    "h": 314.6
  },
  "luminance": 0.0124
}

Semantic roles & 50–950 ramp

primary
#310A40
secondary
#407D29
accent
#F0386B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310A40

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

Preview Lab → · Contrast checker → · Palette generator →

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