#31083B#31083B

#31083B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.097 H 318.8°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#31083B
RGBrgb(49, 8, 59)
HSLhsl(288, 76%, 13%)
HSVhsv(288, 86%, 23%)
CMYKcmyk(16.9%, 86.4%, 0%, 76.9%)
CIE-LABlab(10.13, 28.64, -22.77)
CIE-LCHlch(10.13, 36.58, 321.51°)
OKLaboklab(23.79% 0.0731 -0.064)
OKLCHoklch(23.79% 0.097 318.8)
XYZxyz(2.1428, 1.1425, 4.2445)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31083B #123B08
analogous
#17083B #31083B #3B082B
triadic
#31083B #3B3108 #083B31
tetradic
#31083B #3B1708 #123B08 #082B3B
square
#31083B #3B1708 #123B08 #082B3B
split-complementary
#31083B #2B3B08 #083B17
monochromatic
#16041B #16041B #31083B #5E0F71 #8B17A7

Accessibility & contrast

On white

17.10
#31083B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31083B
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31083B#FFFFFF#000000##FFFFFF
##31083B1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#0B1D3A
Tritanopia (blue-blind)
#311321
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #31083b;
/* rgb */ color: rgb(49, 8, 59);
/* oklch */ color: oklch(23.8% 0.097 318.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d71',
    500: '#31083b',
    950: '#000000',
  },
}
SCSS
$custom: #31083b;
$custom-light: #6b4d71;
$custom-dark: #000000;
JSON
{
  "hex": "#31083b",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 59
  },
  "hsl": {
    "h": 288.235,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23791,
    "c": 0.09715,
    "h": 318.8
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#31083B
secondary
#367A25
accent
#F3355A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31083B

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

Preview Lab → · Contrast checker → · Palette generator →

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