#31062E#31062E

#31062E is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.088 H 331.1°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#31062E
RGBrgb(49, 6, 46)
HSLhsl(304, 78%, 11%)
HSVhsv(304, 88%, 19%)
CMYKcmyk(0%, 87.8%, 6.1%, 80.8%)
CIE-LABlab(8.83, 26.87, -15.35)
CIE-LCHlch(8.83, 30.94, 330.26°)
OKLaboklab(22.56% 0.0766 -0.0423)
OKLCHoklch(22.56% 0.088 331.1)
XYZxyz(1.8249, 0.9806, 2.6774)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31062E #063109
analogous
#1E0631 #31062E #310618
triadic
#31062E #2E3106 #062E31
tetradic
#31062E #311E06 #063109 #061831
square
#31062E #311E06 #063109 #061831
split-complementary
#31062E #183106 #06311E
monochromatic
#1B031A #1B031A #31062E #680D61 #9E1394

Accessibility & contrast

On white

17.56
#31062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#31062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31062E
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31062E#FFFFFF#000000##FFFFFF
##31062E1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03152F
Deuteranopia (green-blind)
#131B2D
Tritanopia (blue-blind)
#330B19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31062e;
/* rgb */ color: rgb(49, 6, 46);
/* oklch */ color: oklch(22.6% 0.088 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b67',
    500: '#31062e',
    950: '#000000',
  },
}
SCSS
$custom: #31062e;
$custom-light: #6b4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#31062e",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 304.186,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22562,
    "c": 0.08753,
    "h": 331.1
  },
  "luminance": 0.0098
}

Semantic roles & 50–950 ramp

primary
#31062E
secondary
#217227
accent
#F54133
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31062E

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

Preview Lab → · Contrast checker → · Palette generator →

#31062E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva