#1F0028#1F0028

#1F0028 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.6% C 0.085 H 318.0°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#1F0028
RGBrgb(31, 0, 40)
HSLhsl(287, 100%, 8%)
HSVhsv(287, 100%, 16%)
CMYKcmyk(22.5%, 100%, 0%, 84.3%)
CIE-LABlab(4.02, 21.35, -18.63)
CIE-LCHlch(4.02, 28.34, 318.89°)
OKLaboklab(17.61% 0.0634 -0.0572)
OKLCHoklch(17.61% 0.085 318)
XYZxyz(0.9480, 0.4446, 2.0429)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0028 #092800
analogous
#0B0028 #1F0028 #28001D
triadic
#1F0028 #281F00 #00281F
tetradic
#1F0028 #280B00 #092800 #001D28
square
#1F0028 #280B00 #092800 #001D28
split-complementary
#1F0028 #1D2800 #00280B
monochromatic
#18001F #18001F #1F0028 #4E0065 #7E00A2

Accessibility & contrast

On white

19.28
#1F0028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1F0028 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0028
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0028#FFFFFF#000000##FFFFFF
##1F00281.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C29
Deuteranopia (green-blind)
#010F27
Tritanopia (blue-blind)
#1F0713
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f0028;
/* rgb */ color: rgb(31, 0, 40);
/* oklch */ color: oklch(17.6% 0.085 318.0);
Tailwind
colors: {
  custom: {
    50: '#5b4662',
    500: '#1f0028',
    950: '#000000',
  },
}
SCSS
$custom: #1f0028;
$custom-light: #5b4662;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0028",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 40
  },
  "hsl": {
    "h": 286.5,
    "s": 100,
    "l": 7.843
  },
  "oklch": {
    "l": 0.1761,
    "c": 0.08541,
    "h": 318
  },
  "luminance": 0.00445
}

Semantic roles & 50–950 ramp

primary
#1F0028
secondary
#297014
accent
#FF2959
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F0028

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

Preview Lab → · Contrast checker → · Palette generator →

#1F0028 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva