#310428#310428

#310428 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.9% C 0.086 H 337.6°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#310428
RGBrgb(49, 4, 40)
HSLhsl(312, 85%, 10%)
HSVhsv(312, 92%, 19%)
CMYKcmyk(0%, 91.8%, 18.4%, 80.8%)
CIE-LABlab(8.07, 26.84, -12.06)
CIE-LCHlch(8.07, 29.42, 335.81°)
OKLaboklab(21.89% 0.0794 -0.0328)
OKLCHoklch(21.89% 0.086 337.6)
XYZxyz(1.6931, 0.8932, 2.0903)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310428 #04310D
analogous
#230431 #310428 #310411
triadic
#310428 #283104 #042831
tetradic
#310428 #312304 #04310D #041131
square
#310428 #312304 #04310D #041131
split-complementary
#310428 #113104 #043123
monochromatic
#1C0217 #1C0217 #310428 #6A0956 #A20D84

Accessibility & contrast

On white

17.82
#310428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#310428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310428
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310428#FFFFFF#000000##FFFFFF
##3104281.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051329
Deuteranopia (green-blind)
#151A27
Tritanopia (blue-blind)
#340615
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310428;
/* rgb */ color: rgb(49, 4, 40);
/* oklch */ color: oklch(21.9% 0.086 337.6);
Tailwind
colors: {
  custom: {
    50: '#6b4962',
    500: '#310428',
    950: '#000000',
  },
}
SCSS
$custom: #310428;
$custom-light: #6b4962;
$custom-dark: #000000;
JSON
{
  "hex": "#310428",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 312,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21892,
    "c": 0.08591,
    "h": 337.6
  },
  "luminance": 0.00893
}

Semantic roles & 50–950 ramp

primary
#310428
secondary
#1D732F
accent
#FB562D
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #310428

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

Preview Lab → · Contrast checker → · Palette generator →

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