#31103F#31103F

#31103F is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.090 H 314.2°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#31103F
RGBrgb(49, 16, 63)
HSLhsl(282, 59%, 15%)
HSVhsv(282, 75%, 25%)
CMYKcmyk(22.2%, 74.6%, 0%, 75.3%)
CIE-LABlab(11.84, 25.64, -22.87)
CIE-LCHlch(11.84, 34.36, 318.27°)
OKLaboklab(25.12% 0.0626 -0.0643)
OKLCHoklch(25.12% 0.09 314.2)
XYZxyz(2.3490, 1.3825, 4.8448)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31103F #1E3F10
analogous
#19103F #31103F #3F1035
triadic
#31103F #3F3110 #103F31
tetradic
#31103F #3F1910 #1E3F10 #10353F
square
#31103F #3F1910 #1E3F10 #10353F
split-complementary
#31103F #353F10 #103F19
monochromatic
#130618 #130618 #31103F #571C70 #7D29A1

Accessibility & contrast

On white

16.45
#31103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#31103F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31103F
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31103F#FFFFFF#000000##FFFFFF
##31103F1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#0E203E
Tritanopia (blue-blind)
#301925
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #31103f;
/* rgb */ color: rgb(49, 16, 63);
/* oklch */ color: oklch(25.1% 0.090 314.2);
Tailwind
colors: {
  custom: {
    50: '#6b5174',
    500: '#31103f',
    950: '#000000',
  },
}
SCSS
$custom: #31103f;
$custom-light: #6b5174;
$custom-dark: #000000;
JSON
{
  "hex": "#31103f",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 282.128,
    "s": 59.494,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25115,
    "c": 0.08972,
    "h": 314.2
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#31103F
secondary
#477932
accent
#E34574
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #31103F

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

Preview Lab → · Contrast checker → · Palette generator →

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