#31062F#31062F

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

Color values

HEX#31062F
RGBrgb(49, 6, 47)
HSLhsl(303, 78%, 11%)
HSVhsv(303, 88%, 19%)
CMYKcmyk(0%, 87.8%, 4.1%, 80.8%)
CIE-LABlab(8.90, 27.06, -15.98)
CIE-LCHlch(8.90, 31.43, 329.43°)
OKLaboklab(22.63% 0.0766 -0.0441)
OKLCHoklch(22.63% 0.088 330.1)
XYZxyz(1.8448, 0.9886, 2.7824)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31062F #063108
analogous
#1D0631 #31062F #310619
triadic
#31062F #2F3106 #062F31
tetradic
#31062F #311D06 #063108 #061931
square
#31062F #311D06 #063108 #061931
split-complementary
#31062F #193106 #06311D
monochromatic
#1B031A #1B031A #31062F #680D63 #9E1398

Accessibility & contrast

On white

17.54
#31062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31062F
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31062F#FFFFFF#000000##FFFFFF
##31062F1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031630
Deuteranopia (green-blind)
#131B2E
Tritanopia (blue-blind)
#330B1A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31062f;
/* rgb */ color: rgb(49, 6, 47);
/* oklch */ color: oklch(22.6% 0.088 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b4b67',
    500: '#31062f',
    950: '#000000',
  },
}
SCSS
$custom: #31062f;
$custom-light: #6b4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#31062f",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 302.791,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22632,
    "c": 0.08844,
    "h": 330.1
  },
  "luminance": 0.00988
}

Semantic roles & 50–950 ramp

primary
#31062F
secondary
#217225
accent
#F53C33
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31062F

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

Preview Lab → · Contrast checker → · Palette generator →

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