#310427#310427

#310427 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.085 H 338.7°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#310427
RGBrgb(49, 4, 39)
HSLhsl(313, 85%, 10%)
HSVhsv(313, 92%, 19%)
CMYKcmyk(0%, 91.8%, 20.4%, 80.8%)
CIE-LABlab(8.01, 26.67, -11.39)
CIE-LCHlch(8.01, 29.00, 336.86°)
OKLaboklab(21.83% 0.0793 -0.0309)
OKLCHoklch(21.83% 0.085 338.7)
XYZxyz(1.6763, 0.8865, 2.0019)
Luminance0.0089 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310427 #04310E
analogous
#240431 #310427 #310410
triadic
#310427 #273104 #042731
tetradic
#310427 #312404 #04310E #041031
square
#310427 #312404 #04310E #041031
split-complementary
#310427 #103104 #043124
monochromatic
#1C0217 #1C0217 #310427 #6A0954 #A20D81

Accessibility & contrast

On white

17.84
#310427 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310427
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310427#FFFFFF#000000##FFFFFF
##3104271.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061328
Deuteranopia (green-blind)
#151A26
Tritanopia (blue-blind)
#340614
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310427;
/* rgb */ color: rgb(49, 4, 39);
/* oklch */ color: oklch(21.8% 0.085 338.7);
Tailwind
colors: {
  custom: {
    50: '#6b4961',
    500: '#310427',
    950: '#000000',
  },
}
SCSS
$custom: #310427;
$custom-light: #6b4961;
$custom-dark: #000000;
JSON
{
  "hex": "#310427",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 39
  },
  "hsl": {
    "h": 313.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21829,
    "c": 0.08509,
    "h": 338.7
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#310427
secondary
#1D7330
accent
#FB5B2D
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #310427

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

Preview Lab → · Contrast checker → · Palette generator →

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