#31043A#31043A

#31043A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.2% C 0.102 H 320.2°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#31043A
RGBrgb(49, 4, 58)
HSLhsl(290, 87%, 12%)
HSVhsv(290, 93%, 23%)
CMYKcmyk(15.5%, 93.1%, 0%, 77.3%)
CIE-LABlab(9.36, 30.39, -23.28)
CIE-LCHlch(9.36, 38.28, 322.55°)
OKLaboklab(23.23% 0.0785 -0.0654)
OKLCHoklch(23.23% 0.102 320.2)
XYZxyz(2.0737, 1.0454, 4.0947)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31043A #0D3A04
analogous
#16043A #31043A #3A0428
triadic
#31043A #3A3104 #043A31
tetradic
#31043A #3A1604 #0D3A04 #04283A
square
#31043A #3A1604 #0D3A04 #04283A
split-complementary
#31043A #283A04 #043A16
monochromatic
#18021D #18021D #31043A #610873 #920CAD

Accessibility & contrast

On white

17.37
#31043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31043A
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31043A#FFFFFF#000000##FFFFFF
##31043A1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#091C39
Tritanopia (blue-blind)
#310F1F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31043a;
/* rgb */ color: rgb(49, 4, 58);
/* oklch */ color: oklch(23.2% 0.102 320.2);
Tailwind
colors: {
  custom: {
    50: '#6c4a70',
    500: '#31043a',
    950: '#000000',
  },
}
SCSS
$custom: #31043a;
$custom-light: #6c4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#31043a",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 290,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23228,
    "c": 0.10216,
    "h": 320.2
  },
  "luminance": 0.01045
}

Semantic roles & 50–950 ramp

primary
#31043A
secondary
#2E7C1E
accent
#FD2B4E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #31043A

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

Preview Lab → · Contrast checker → · Palette generator →

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