#310433#310433

#310433 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.096 H 326.3°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#310433
RGBrgb(49, 4, 51)
HSLhsl(297, 85%, 11%)
HSVhsv(297, 92%, 20%)
CMYKcmyk(3.9%, 92.2%, 0%, 80%)
CIE-LABlab(8.82, 28.91, -19.06)
CIE-LCHlch(8.82, 34.63, 326.60°)
OKLaboklab(22.67% 0.0795 -0.0531)
OKLCHoklch(22.67% 0.096 326.3)
XYZxyz(1.9075, 0.9790, 3.2198)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310433 #063304
analogous
#190433 #310433 #33041D
triadic
#310433 #333104 #043331
tetradic
#310433 #331904 #063304 #041D33
square
#310433 #331904 #063304 #041D33
split-complementary
#310433 #1D3304 #043319
monochromatic
#1B021C #1B021C #310433 #68086C #9E0DA4

Accessibility & contrast

On white

17.56
#310433 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310433
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310433#FFFFFF#000000##FFFFFF
##3104331.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001534
Deuteranopia (green-blind)
#0F1B32
Tritanopia (blue-blind)
#330C1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310433;
/* rgb */ color: rgb(49, 4, 51);
/* oklch */ color: oklch(22.7% 0.096 326.3);
Tailwind
colors: {
  custom: {
    50: '#6b4a6b',
    500: '#310433',
    950: '#000000',
  },
}
SCSS
$custom: #310433;
$custom-light: #6b4a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#310433",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 51
  },
  "hsl": {
    "h": 297.447,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22666,
    "c": 0.09557,
    "h": 326.3
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#310433
secondary
#21751D
accent
#FC2C35
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310433

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

Preview Lab → · Contrast checker → · Palette generator →

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