#31133F#31133F

#31133F is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.6% C 0.085 H 313.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#31133F
RGBrgb(49, 19, 63)
HSLhsl(281, 54%, 16%)
HSVhsv(281, 70%, 25%)
CMYKcmyk(22.2%, 69.8%, 0%, 75.3%)
CIE-LABlab(12.47, 23.92, -21.87)
CIE-LCHlch(12.47, 32.41, 317.56°)
OKLaboklab(25.57% 0.0582 -0.0614)
OKLCHoklch(25.57% 0.085 313.5)
XYZxyz(2.3965, 1.4777, 4.8606)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31133F #213F13
analogous
#1B133F #31133F #3F1337
triadic
#31133F #3F3113 #133F31
tetradic
#31133F #3F1B13 #213F13 #13373F
square
#31133F #3F1B13 #213F13 #13373F
split-complementary
#31133F #373F13 #133F1B
monochromatic
#120718 #120718 #31133F #56216E #7A2F9D

Accessibility & contrast

On white

16.21
#31133F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#31133F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31133F
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31133F#FFFFFF#000000##FFFFFF
##31133F1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F40
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#301B26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31133f;
/* rgb */ color: rgb(49, 19, 63);
/* oklch */ color: oklch(25.6% 0.085 313.5);
Tailwind
colors: {
  custom: {
    50: '#6b5374',
    500: '#31133f',
    950: '#000000',
  },
}
SCSS
$custom: #31133f;
$custom-light: #6b5374;
$custom-dark: #000000;
JSON
{
  "hex": "#31133f",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 63
  },
  "hsl": {
    "h": 280.909,
    "s": 53.659,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25566,
    "c": 0.08461,
    "h": 313.5
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#31133F
secondary
#4B7836
accent
#DD4B79
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #31133F

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

Preview Lab → · Contrast checker → · Palette generator →

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