#1F072B#1F072B

#1F072B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.072 H 312.3°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#1F072B
RGBrgb(31, 7, 43)
HSLhsl(280, 72%, 10%)
HSVhsv(280, 84%, 17%)
CMYKcmyk(27.9%, 83.7%, 0%, 83.1%)
CIE-LABlab(5.58, 19.29, -18.46)
CIE-LCHlch(5.58, 26.70, 316.26°)
OKLaboklab(19.25% 0.0487 -0.0535)
OKLCHoklch(19.25% 0.072 312.3)
XYZxyz(1.0770, 0.6177, 2.3475)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072B #132B07
analogous
#0D072B #1F072B #2B0725
triadic
#1F072B #2B1F07 #072B1F
tetradic
#1F072B #2B0D07 #132B07 #07252B
square
#1F072B #2B0D07 #132B07 #07252B
split-complementary
#1F072B #252B07 #072B0D
monochromatic
#13041A #13041A #1F072B #451060 #6B1894

Accessibility & contrast

On white

18.69
#1F072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F072B
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072B#FFFFFF#000000##FFFFFF
##1F072B1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#04132A
Tritanopia (blue-blind)
#1E0E18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f072b;
/* rgb */ color: rgb(31, 7, 43);
/* oklch */ color: oklch(19.3% 0.072 312.3);
Tailwind
colors: {
  custom: {
    50: '#5c4964',
    500: '#1f072b',
    950: '#000000',
  },
}
SCSS
$custom: #1f072b;
$custom-light: #5c4964;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072b",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 280,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19251,
    "c": 0.07235,
    "h": 312.3
  },
  "luminance": 0.00618
}

Semantic roles & 50–950 ramp

primary
#1F072B
secondary
#3B6B23
accent
#EF3976
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1F072B

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

Preview Lab → · Contrast checker → · Palette generator →

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