#310730#310730

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

Color values

HEX#310730
RGBrgb(49, 7, 48)
HSLhsl(301, 75%, 11%)
HSVhsv(301, 86%, 19%)
CMYKcmyk(0%, 85.7%, 2%, 80.8%)
CIE-LABlab(9.14, 26.75, -16.33)
CIE-LCHlch(9.14, 31.34, 328.59°)
OKLaboklab(22.83% 0.0752 -0.0452)
OKLCHoklch(22.83% 0.088 329)
XYZxyz(1.8761, 1.0185, 2.8935)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310730 #073108
analogous
#1D0731 #310730 #31071B
triadic
#310730 #303107 #073031
tetradic
#310730 #311D07 #073108 #071B31
square
#310730 #311D07 #073108 #071B31
split-complementary
#310730 #1B3107 #07311D
monochromatic
#1B041A #1B041A #310730 #670F64 #9C1699

Accessibility & contrast

On white

17.45
#310730 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310730 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310730
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310730#FFFFFF#000000##FFFFFF
##3107301.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #310730;
/* rgb */ color: rgb(49, 7, 48);
/* oklch */ color: oklch(22.8% 0.088 329.0);
Tailwind
colors: {
  custom: {
    50: '#6b4b68',
    500: '#310730',
    950: '#000000',
  },
}
SCSS
$custom: #310730;
$custom-light: #6b4b68;
$custom-dark: #000000;
JSON
{
  "hex": "#310730",
  "rgb": {
    "r": 49,
    "g": 7,
    "b": 48
  },
  "hsl": {
    "h": 301.429,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22832,
    "c": 0.0877,
    "h": 329
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#310730
secondary
#237125
accent
#F23B36
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310730

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

Preview Lab → · Contrast checker → · Palette generator →

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