#310314#310314

#310314 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.7% C 0.076 H 3.4°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#310314
RGBrgb(49, 3, 20)
HSLhsl(338, 88%, 10%)
HSVhsv(338, 94%, 19%)
CMYKcmyk(0%, 93.9%, 59.2%, 80.8%)
CIE-LABlab(6.94, 24.41, 1.46)
CIE-LCHlch(6.94, 24.45, 3.42°)
OKLaboklab(20.73% 0.0755 0.0045)
OKLCHoklch(20.73% 0.076 3.4)
XYZxyz(1.4256, 0.7688, 0.7350)
Luminance0.0077 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310314 #033120
analogous
#31032B #310314 #310903
triadic
#310314 #143103 #031431
tetradic
#310314 #2B3103 #033120 #090331
square
#310314 #2B3103 #033120 #090331
split-complementary
#310314 #033109 #032B31
monochromatic
#1D020C #1D020C #310314 #6B072C #A40A43

Accessibility & contrast

On white

18.20
#310314 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#310314 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310314
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310314#FFFFFF#000000##FFFFFF
##3103141.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0F14
Deuteranopia (green-blind)
#1A1913
Tritanopia (blue-blind)
#36000A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #310314;
/* rgb */ color: rgb(49, 3, 20);
/* oklch */ color: oklch(20.7% 0.076 3.4);
Tailwind
colors: {
  custom: {
    50: '#6c4851',
    500: '#310314',
    950: '#000000',
  },
}
SCSS
$custom: #310314;
$custom-light: #6c4851;
$custom-dark: #000000;
JSON
{
  "hex": "#310314",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 20
  },
  "hsl": {
    "h": 337.826,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20725,
    "c": 0.07567,
    "h": 3.4
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#310314
secondary
#1B7454
accent
#FFB029
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #310314

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

Preview Lab → · Contrast checker → · Palette generator →

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