#310526#310526

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

Color values

HEX#310526
RGBrgb(49, 5, 38)
HSLhsl(315, 81%, 11%)
HSVhsv(315, 90%, 19%)
CMYKcmyk(0%, 89.8%, 22.4%, 80.8%)
CIE-LABlab(8.14, 25.94, -10.43)
CIE-LCHlch(8.14, 27.96, 338.11°)
OKLaboklab(21.91% 0.0774 -0.0282)
OKLCHoklch(21.91% 0.082 340)
XYZxyz(1.6708, 0.9016, 1.9194)
Luminance0.0090 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310526 #053110
analogous
#260531 #310526 #310510
triadic
#310526 #263105 #052631
tetradic
#310526 #312605 #053110 #051031
square
#310526 #312605 #053110 #051031
split-complementary
#310526 #103105 #053126
monochromatic
#1C0316 #1C0316 #310526 #690B51 #A0107C

Accessibility & contrast

On white

17.79
#310526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310526
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310526#FFFFFF#000000##FFFFFF
##3105261.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081327
Deuteranopia (green-blind)
#161A25
Tritanopia (blue-blind)
#350614
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #310526;
/* rgb */ color: rgb(49, 5, 38);
/* oklch */ color: oklch(21.9% 0.082 340.0);
Tailwind
colors: {
  custom: {
    50: '#6b4a60',
    500: '#310526',
    950: '#000000',
  },
}
SCSS
$custom: #310526;
$custom-light: #6b4a60;
$custom-dark: #000000;
JSON
{
  "hex": "#310526",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 38
  },
  "hsl": {
    "h": 315,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21908,
    "c": 0.0824,
    "h": 340
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#310526
secondary
#1F7234
accent
#F86230
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310526

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

Preview Lab → · Contrast checker → · Palette generator →

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