#31043B#31043B

#31043B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.103 H 319.4°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#31043B
RGBrgb(49, 4, 59)
HSLhsl(289, 87%, 12%)
HSVhsv(289, 93%, 23%)
CMYKcmyk(16.9%, 93.2%, 0%, 76.9%)
CIE-LABlab(9.45, 30.60, -23.86)
CIE-LCHlch(9.45, 38.81, 322.05°)
OKLaboklab(23.31% 0.0783 -0.0671)
OKLCHoklch(23.31% 0.103 319.4)
XYZxyz(2.0994, 1.0557, 4.2300)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31043B #0E3B04
analogous
#16043B #31043B #3B042A
triadic
#31043B #3B3104 #043B31
tetradic
#31043B #3B1604 #0E3B04 #042A3B
square
#31043B #3B1604 #0E3B04 #042A3B
split-complementary
#31043B #2A3B04 #043B16
monochromatic
#18021D #18021D #31043B #610874 #900CAE

Accessibility & contrast

On white

17.34
#31043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#31043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31043B
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31043B#FFFFFF#000000##FFFFFF
##31043B1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173C
Deuteranopia (green-blind)
#081C3A
Tritanopia (blue-blind)
#311020
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31043b;
/* rgb */ color: rgb(49, 4, 59);
/* oklch */ color: oklch(23.3% 0.103 319.4);
Tailwind
colors: {
  custom: {
    50: '#6c4a71',
    500: '#31043b',
    950: '#000000',
  },
}
SCSS
$custom: #31043b;
$custom-light: #6c4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#31043b",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 289.091,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23312,
    "c": 0.10312,
    "h": 319.4
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#31043B
secondary
#2F7D1E
accent
#FD2A51
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #31043B

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

Preview Lab → · Contrast checker → · Palette generator →

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