#31062C#31062C

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

Color values

HEX#31062C
RGBrgb(49, 6, 44)
HSLhsl(307, 78%, 11%)
HSVhsv(307, 88%, 19%)
CMYKcmyk(0%, 87.8%, 10.2%, 80.8%)
CIE-LABlab(8.70, 26.48, -14.07)
CIE-LCHlch(8.70, 29.99, 332.02°)
OKLaboklab(22.43% 0.0765 -0.0386)
OKLCHoklch(22.43% 0.086 333.2)
XYZxyz(1.7864, 0.9652, 2.4746)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31062C #06310B
analogous
#200631 #31062C #310616
triadic
#31062C #2C3106 #062C31
tetradic
#31062C #312006 #06310B #061631
square
#31062C #312006 #06310B #061631
split-complementary
#31062C #163106 #063120
monochromatic
#1B0318 #1B0318 #31062C #680D5D #9E138E

Accessibility & contrast

On white

17.60
#31062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31062C
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31062C#FFFFFF#000000##FFFFFF
##31062C1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152D
Deuteranopia (green-blind)
#141B2B
Tritanopia (blue-blind)
#340A18
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31062c;
/* rgb */ color: rgb(49, 6, 44);
/* oklch */ color: oklch(22.4% 0.086 333.2);
Tailwind
colors: {
  custom: {
    50: '#6b4b65',
    500: '#31062c',
    950: '#000000',
  },
}
SCSS
$custom: #31062c;
$custom-light: #6b4b65;
$custom-dark: #000000;
JSON
{
  "hex": "#31062c",
  "rgb": {
    "r": 49,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 306.977,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22426,
    "c": 0.0857,
    "h": 333.2
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31062C

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

Preview Lab → · Contrast checker → · Palette generator →

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