#31053B#31053B

#31053B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.102 H 319.3°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#31053B
RGBrgb(49, 5, 59)
HSLhsl(289, 84%, 13%)
HSVhsv(289, 92%, 23%)
CMYKcmyk(16.9%, 91.5%, 0%, 76.9%)
CIE-LABlab(9.62, 30.10, -23.58)
CIE-LCHlch(9.62, 38.24, 321.92°)
OKLaboklab(23.43% 0.077 -0.0663)
OKLCHoklch(23.43% 0.102 319.3)
XYZxyz(2.1102, 1.0774, 4.2336)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31053B #0F3B05
analogous
#16053B #31053B #3B052A
triadic
#31053B #3B3105 #053B31
tetradic
#31053B #3B1605 #0F3B05 #052A3B
square
#31053B #3B1605 #0F3B05 #052A3B
split-complementary
#31053B #2A3B05 #053B16
monochromatic
#17021C #17021C #31053B #600A73 #8F0FAC

Accessibility & contrast

On white

17.28
#31053B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#31053B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31053B
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31053B#FFFFFF#000000##FFFFFF
##31053B1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#091C3A
Tritanopia (blue-blind)
#311120
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #31053b;
/* rgb */ color: rgb(49, 5, 59);
/* oklch */ color: oklch(23.4% 0.102 319.3);
Tailwind
colors: {
  custom: {
    50: '#6c4b71',
    500: '#31053b',
    950: '#000000',
  },
}
SCSS
$custom: #31053b;
$custom-light: #6c4b71;
$custom-dark: #000000;
JSON
{
  "hex": "#31053b",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 59
  },
  "hsl": {
    "h": 288.889,
    "s": 84.375,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23434,
    "c": 0.10159,
    "h": 319.3
  },
  "luminance": 0.01077
}

Semantic roles & 50–950 ramp

primary
#31053B
secondary
#317C20
accent
#FB2D53
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31053B

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

Preview Lab → · Contrast checker → · Palette generator →

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