#31062B#31062B

#31062B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.4% C 0.085 H 334.3°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#31062B
RGBrgb(49, 6, 43)
HSLhsl(308, 78%, 11%)
HSVhsv(308, 88%, 19%)
CMYKcmyk(0%, 87.8%, 12.2%, 80.8%)
CIE-LABlab(8.63, 26.29, -13.42)
CIE-LCHlch(8.63, 29.52, 332.96°)
OKLaboklab(22.36% 0.0764 -0.0367)
OKLCHoklch(22.36% 0.085 334.3)
XYZxyz(1.7678, 0.9578, 2.3768)
Luminance0.0096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31062B #06310C
analogous
#210631 #31062B #310615
triadic
#31062B #2B3106 #062B31
tetradic
#31062B #312106 #06310C #061531
square
#31062B #312106 #06310C #061531
split-complementary
#31062B #153106 #063121
monochromatic
#1B0318 #1B0318 #31062B #680D5B #9E138B

Accessibility & contrast

On white

17.62
#31062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31062B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31062B
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31062B#FFFFFF#000000##FFFFFF
##31062B1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152C
Deuteranopia (green-blind)
#151B2A
Tritanopia (blue-blind)
#340917
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31062b;
/* rgb */ color: rgb(49, 6, 43);
/* oklch */ color: oklch(22.4% 0.085 334.3);
Tailwind
colors: {
  custom: {
    50: '#6b4b64',
    500: '#31062b',
    950: '#000000',
  },
}
SCSS
$custom: #31062b;
$custom-light: #6b4b64;
$custom-dark: #000000;
JSON
{
  "hex": "#31062b",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 308.372,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2236,
    "c": 0.08481,
    "h": 334.3
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#31062B
secondary
#21722C
accent
#F54E33
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31062B

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

Preview Lab → · Contrast checker → · Palette generator →

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