#310434#310434

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

Color values

HEX#310434
RGBrgb(49, 4, 52)
HSLhsl(296, 86%, 11%)
HSVhsv(296, 92%, 20%)
CMYKcmyk(5.8%, 92.3%, 0%, 79.6%)
CIE-LABlab(8.89, 29.12, -19.68)
CIE-LCHlch(8.89, 35.14, 325.95°)
OKLaboklab(22.74% 0.0794 -0.0549)
OKLCHoklch(22.74% 0.096 325.4)
XYZxyz(1.9298, 0.9879, 3.3372)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310434 #073404
analogous
#190434 #310434 #34041F
triadic
#310434 #343104 #043431
tetradic
#310434 #341904 #073404 #041F34
square
#310434 #341904 #073404 #041F34
split-complementary
#310434 #1F3404 #043419
monochromatic
#1B021C #1B021C #310434 #67086D #9C0DA6

Accessibility & contrast

On white

17.54
#310434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310434
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310434#FFFFFF#000000##FFFFFF
##3104341.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#0E1B33
Tritanopia (blue-blind)
#320C1C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310434;
/* rgb */ color: rgb(49, 4, 52);
/* oklch */ color: oklch(22.7% 0.096 325.4);
Tailwind
colors: {
  custom: {
    50: '#6b4a6c',
    500: '#310434',
    950: '#000000',
  },
}
SCSS
$custom: #310434;
$custom-light: #6b4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310434",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 52
  },
  "hsl": {
    "h": 296.25,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22743,
    "c": 0.09649,
    "h": 325.4
  },
  "luminance": 0.00988
}

Semantic roles & 50–950 ramp

primary
#310434
secondary
#23761E
accent
#FC2C39
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310434

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

Preview Lab → · Contrast checker → · Palette generator →

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