#31123D#31123D

#31123D is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.084 H 315.4°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#31123D
RGBrgb(49, 18, 61)
HSLhsl(283, 54%, 15%)
HSVhsv(283, 70%, 24%)
CMYKcmyk(19.7%, 70.5%, 0%, 76.1%)
CIE-LABlab(12.11, 23.99, -21.02)
CIE-LCHlch(12.11, 31.90, 318.77°)
OKLaboklab(25.26% 0.0597 -0.0589)
OKLCHoklch(25.26% 0.084 315.4)
XYZxyz(2.3251, 1.4226, 4.5661)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31123D #1E3D12
analogous
#1B123D #31123D #3D1233
triadic
#31123D #3D3112 #123D31
tetradic
#31123D #3D1B12 #1E3D12 #12333D
square
#31123D #3D1B12 #1E3D12 #12333D
split-complementary
#31123D #333D12 #123D1B
monochromatic
#130718 #130718 #31123D #57206C #7D2E9C

Accessibility & contrast

On white

16.35
#31123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#31123D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31123D
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31123D#FFFFFF#000000##FFFFFF
##31123D1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3E
Deuteranopia (green-blind)
#12213C
Tritanopia (blue-blind)
#301A25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31123d;
/* rgb */ color: rgb(49, 18, 61);
/* oklch */ color: oklch(25.3% 0.084 315.4);
Tailwind
colors: {
  custom: {
    50: '#6b5273',
    500: '#31123d',
    950: '#000000',
  },
}
SCSS
$custom: #31123d;
$custom-light: #6b5273;
$custom-dark: #000000;
JSON
{
  "hex": "#31123d",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 283.256,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25261,
    "c": 0.08389,
    "h": 315.4
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#31123D
secondary
#477635
accent
#DE4A73
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #31123D

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

Preview Lab → · Contrast checker → · Palette generator →

#31123D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva