#310330#310330

#310330 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.095 H 329.2°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#310330
RGBrgb(49, 3, 48)
HSLhsl(301, 88%, 10%)
HSVhsv(301, 94%, 19%)
CMYKcmyk(0%, 93.9%, 2%, 80.8%)
CIE-LABlab(8.41, 28.87, -17.50)
CIE-LCHlch(8.41, 33.76, 328.78°)
OKLaboklab(22.31% 0.0812 -0.0485)
OKLCHoklch(22.31% 0.095 329.2)
XYZxyz(1.8327, 0.9316, 2.8790)
Luminance0.0093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310330 #033104
analogous
#1B0331 #310330 #310319
triadic
#310330 #303103 #033031
tetradic
#310330 #311B03 #033104 #031931
square
#310330 #311B03 #033104 #031931
split-complementary
#310330 #193103 #03311B
monochromatic
#1D021C #1D021C #310330 #6B0768 #A40AA1

Accessibility & contrast

On white

17.70
#310330 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310330 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310330
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310330#FFFFFF#000000##FFFFFF
##3103301.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001431
Deuteranopia (green-blind)
#101A2F
Tritanopia (blue-blind)
#330919
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310330;
/* rgb */ color: rgb(49, 3, 48);
/* oklch */ color: oklch(22.3% 0.095 329.2);
Tailwind
colors: {
  custom: {
    50: '#6b4968',
    500: '#310330',
    950: '#000000',
  },
}
SCSS
$custom: #310330;
$custom-light: #6b4968;
$custom-dark: #000000;
JSON
{
  "hex": "#310330",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 48
  },
  "hsl": {
    "h": 301.304,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.22307,
    "c": 0.09461,
    "h": 329.2
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#310330
secondary
#1B741D
accent
#FF2E29
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310330

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

Preview Lab → · Contrast checker → · Palette generator →

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