#31062A#31062A

#31062A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.084 H 335.5°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#31062A
RGBrgb(49, 6, 42)
HSLhsl(310, 78%, 11%)
HSVhsv(310, 88%, 19%)
CMYKcmyk(0%, 87.8%, 14.3%, 80.8%)
CIE-LABlab(8.57, 26.11, -12.77)
CIE-LCHlch(8.57, 29.06, 333.93°)
OKLaboklab(22.3% 0.0763 -0.0349)
OKLCHoklch(22.3% 0.084 335.5)
XYZxyz(1.7497, 0.9505, 2.2814)
Luminance0.0095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31062A #06310D
analogous
#220631 #31062A #310614
triadic
#31062A #2A3106 #062A31
tetradic
#31062A #312206 #06310D #061431
square
#31062A #312206 #06310D #061431
split-complementary
#31062A #143106 #063122
monochromatic
#1B0317 #1B0317 #31062A #680D59 #9E1387

Accessibility & contrast

On white

17.65
#31062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31062A
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31062A#FFFFFF#000000##FFFFFF
##31062A1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06152B
Deuteranopia (green-blind)
#151B29
Tritanopia (blue-blind)
#340917
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31062a;
/* rgb */ color: rgb(49, 6, 42);
/* oklch */ color: oklch(22.3% 0.084 335.5);
Tailwind
colors: {
  custom: {
    50: '#6b4b63',
    500: '#31062a',
    950: '#000000',
  },
}
SCSS
$custom: #31062a;
$custom-light: #6b4b63;
$custom-dark: #000000;
JSON
{
  "hex": "#31062a",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 309.767,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22295,
    "c": 0.08393,
    "h": 335.5
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#31062A
secondary
#21722E
accent
#F55333
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #31062A

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

Preview Lab → · Contrast checker → · Palette generator →

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