#310830#310830

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

Color values

HEX#310830
RGBrgb(49, 8, 48)
HSLhsl(301, 72%, 11%)
HSVhsv(301, 84%, 19%)
CMYKcmyk(0%, 83.7%, 2%, 80.8%)
CIE-LABlab(9.32, 26.24, -16.05)
CIE-LCHlch(9.32, 30.76, 328.55°)
OKLaboklab(22.96% 0.0737 -0.0443)
OKLCHoklch(22.96% 0.086 329)
XYZxyz(1.8869, 1.0402, 2.8971)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310830 #083109
analogous
#1D0831 #310830 #31081B
triadic
#310830 #303108 #083031
tetradic
#310830 #311D08 #083109 #081B31
square
#310830 #311D08 #083109 #081B31
split-complementary
#310830 #1B3108 #08311D
monochromatic
#1A041A #1A041A #310830 #661164 #9A1997

Accessibility & contrast

On white

17.38
#310830 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310830 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310830
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310830#FFFFFF#000000##FFFFFF
##3108301.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041731
Deuteranopia (green-blind)
#131C2F
Tritanopia (blue-blind)
#330E1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310830;
/* rgb */ color: rgb(49, 8, 48);
/* oklch */ color: oklch(23.0% 0.086 329.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c68',
    500: '#310830',
    950: '#000000',
  },
}
SCSS
$custom: #310830;
$custom-light: #6b4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#310830",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 48
  },
  "hsl": {
    "h": 301.463,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22959,
    "c": 0.08605,
    "h": 329
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#310830
secondary
#257027
accent
#EF3E39
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310830

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

Preview Lab → · Contrast checker → · Palette generator →

#310830 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva