#310F27#310F27

#310F27 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.4% C 0.065 H 340.5°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#310F27
RGBrgb(49, 15, 39)
HSLhsl(318, 53%, 13%)
HSVhsv(318, 69%, 19%)
CMYKcmyk(0%, 69.4%, 20.4%, 80.8%)
CIE-LABlab(10.12, 20.80, -8.13)
CIE-LCHlch(10.12, 22.33, 338.65°)
OKLaboklab(23.37% 0.0616 -0.0218)
OKLCHoklch(23.37% 0.065 340.5)
XYZxyz(1.8037, 1.1412, 2.0443)
Luminance0.0114 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F27 #0F3119
analogous
#2A0F31 #310F27 #310F16
triadic
#310F27 #27310F #0F2731
tetradic
#310F27 #312A0F #0F3119 #0F1631
square
#310F27 #312A0F #0F3119 #0F1631
split-complementary
#310F27 #16310F #0F312A
monochromatic
#170713 #170713 #310F27 #601D4C #8F2C72

Accessibility & contrast

On white

17.10
#310F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F27
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F27#FFFFFF#000000##FFFFFF
##310F271.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111828
Deuteranopia (green-blind)
#1B1E26
Tritanopia (blue-blind)
#341019
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310f27;
/* rgb */ color: rgb(49, 15, 39);
/* oklch */ color: oklch(23.4% 0.065 340.5);
Tailwind
colors: {
  custom: {
    50: '#6a4f61',
    500: '#310f27',
    950: '#000000',
  },
}
SCSS
$custom: #310f27;
$custom-light: #6a4f61;
$custom-dark: #000000;
JSON
{
  "hex": "#310f27",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 317.647,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23366,
    "c": 0.06536,
    "h": 340.5
  },
  "luminance": 0.01141
}

Semantic roles & 50–950 ramp

primary
#310F27
secondary
#316B42
accent
#DD764B
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070205
muted
#7A7879

Preview Lab

Preview with #310F27

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

Preview Lab → · Contrast checker → · Palette generator →

#310F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva