#31043F#31043F

#31043F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.107 H 316.3°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#31043F
RGBrgb(49, 4, 63)
HSLhsl(286, 88%, 13%)
HSVhsv(286, 94%, 25%)
CMYKcmyk(22.2%, 93.7%, 0%, 75.3%)
CIE-LABlab(9.79, 31.49, -26.18)
CIE-LCHlch(9.79, 40.95, 320.26°)
OKLaboklab(23.66% 0.0774 -0.0739)
OKLCHoklch(23.66% 0.107 316.3)
XYZxyz(2.2071, 1.0988, 4.7975)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31043F #123F04
analogous
#13043F #31043F #3F042F
triadic
#31043F #3F3104 #043F31
tetradic
#31043F #3F1304 #123F04 #042F3F
square
#31043F #3F1304 #123F04 #042F3F
split-complementary
#31043F #2F3F04 #043F13
monochromatic
#16021D #16021D #31043F #5E0879 #8B0BB2

Accessibility & contrast

On white

17.22
#31043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#31043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31043F
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31043F#FFFFFF#000000##FFFFFF
##31043F1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#031C3E
Tritanopia (blue-blind)
#301222
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31043f;
/* rgb */ color: rgb(49, 4, 63);
/* oklch */ color: oklch(23.7% 0.107 316.3);
Tailwind
colors: {
  custom: {
    50: '#6c4b74',
    500: '#31043f',
    950: '#000000',
  },
}
SCSS
$custom: #31043f;
$custom-light: #6c4b74;
$custom-dark: #000000;
JSON
{
  "hex": "#31043f",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 285.763,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23659,
    "c": 0.10698,
    "h": 316.3
  },
  "luminance": 0.01099
}

Semantic roles & 50–950 ramp

primary
#31043F
secondary
#36801E
accent
#FE2A5C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31043F

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

Preview Lab → · Contrast checker → · Palette generator →

#31043F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva