#310225#310225

#310225 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.087 H 340.7°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#310225
RGBrgb(49, 2, 37)
HSLhsl(315, 92%, 10%)
HSVhsv(315, 96%, 19%)
CMYKcmyk(0%, 95.9%, 24.5%, 80.8%)
CIE-LABlab(7.50, 27.45, -10.67)
CIE-LCHlch(7.50, 29.45, 338.77°)
OKLaboklab(21.42% 0.0826 -0.0289)
OKLCHoklch(21.42% 0.087 340.7)
XYZxyz(1.6223, 0.8301, 1.8247)
Luminance0.0083 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310225 #02310E
analogous
#250231 #310225 #31020E
triadic
#310225 #253102 #022531
tetradic
#310225 #312502 #02310E #020E31
square
#310225 #312502 #02310E #020E31
split-complementary
#310225 #0E3102 #023125
monochromatic
#1D0116 #1D0116 #310225 #6C0451 #A7077E

Accessibility & contrast

On white

18.01
#310225 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#310225 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310225
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310225#FFFFFF#000000##FFFFFF
##3102251.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051226
Deuteranopia (green-blind)
#151924
Tritanopia (blue-blind)
#350312
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #310225;
/* rgb */ color: rgb(49, 2, 37);
/* oklch */ color: oklch(21.4% 0.087 340.7);
Tailwind
colors: {
  custom: {
    50: '#6c485f',
    500: '#310225',
    950: '#000000',
  },
}
SCSS
$custom: #310225;
$custom-light: #6c485f;
$custom-dark: #000000;
JSON
{
  "hex": "#310225",
  "rgb": {
    "r": 49,
    "g": 2,
    "b": 37
  },
  "hsl": {
    "h": 315.319,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.21417,
    "c": 0.08745,
    "h": 340.7
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#310225
secondary
#197531
accent
#FF5F29
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070104
muted
#7A7779

Preview Lab

Preview with #310225

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

Preview Lab → · Contrast checker → · Palette generator →

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