#31083E#31083E

#31083E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.100 H 316.4°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#31083E
RGBrgb(49, 8, 62)
HSLhsl(286, 77%, 14%)
HSVhsv(286, 87%, 24%)
CMYKcmyk(21%, 87.1%, 0%, 75.7%)
CIE-LABlab(10.37, 29.33, -24.53)
CIE-LCHlch(10.37, 38.23, 320.10°)
OKLaboklab(24.04% 0.0727 -0.0691)
OKLCHoklch(24.04% 0.1 316.4)
XYZxyz(2.2228, 1.1745, 4.6661)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31083E #153E08
analogous
#16083E #31083E #3E0830
triadic
#31083E #3E3108 #083E31
tetradic
#31083E #3E1608 #153E08 #08303E
square
#31083E #3E1608 #153E08 #08303E
split-complementary
#31083E #303E08 #083E16
monochromatic
#15031B #15031B #31083E #5C0F74 #8716AA

Accessibility & contrast

On white

17.01
#31083E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#31083E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31083E
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31083E#FFFFFF#000000##FFFFFF
##31083E1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#081D3D
Tritanopia (blue-blind)
#301423
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31083e;
/* rgb */ color: rgb(49, 8, 62);
/* oklch */ color: oklch(24.0% 0.100 316.4);
Tailwind
colors: {
  custom: {
    50: '#6c4d74',
    500: '#31083e',
    950: '#000000',
  },
}
SCSS
$custom: #31083e;
$custom-light: #6c4d74;
$custom-dark: #000000;
JSON
{
  "hex": "#31083e",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 62
  },
  "hsl": {
    "h": 285.556,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24039,
    "c": 0.10029,
    "h": 316.4
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#31083E
secondary
#3A7D25
accent
#F43462
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #31083E

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

Preview Lab → · Contrast checker → · Palette generator →

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