#1F072D#1F072D

#1F072D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.075 H 310.3°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#1F072D
RGBrgb(31, 7, 45)
HSLhsl(278, 73%, 10%)
HSVhsv(278, 84%, 18%)
CMYKcmyk(31.1%, 84.4%, 0%, 82.4%)
CIE-LABlab(5.72, 20.00, -19.75)
CIE-LCHlch(5.72, 28.10, 315.36°)
OKLaboklab(19.43% 0.0484 -0.0571)
OKLCHoklch(19.43% 0.075 310.3)
XYZxyz(1.1146, 0.6327, 2.5455)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072D #152D07
analogous
#0C072D #1F072D #2D0728
triadic
#1F072D #2D1F07 #072D1F
tetradic
#1F072D #2D0C07 #152D07 #07282D
square
#1F072D #2D0C07 #152D07 #07282D
split-complementary
#1F072D #282D07 #072D0C
monochromatic
#12041A #12041A #1F072D #430F62 #681797

Accessibility & contrast

On white

18.64
#1F072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F072D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F072D
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072D#FFFFFF#000000##FFFFFF
##1F072D1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#03132C
Tritanopia (blue-blind)
#1D0F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f072d;
/* rgb */ color: rgb(31, 7, 45);
/* oklch */ color: oklch(19.4% 0.075 310.3);
Tailwind
colors: {
  custom: {
    50: '#5c4966',
    500: '#1f072d',
    950: '#000000',
  },
}
SCSS
$custom: #1f072d;
$custom-light: #5c4966;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072d",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 277.895,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19428,
    "c": 0.07489,
    "h": 310.3
  },
  "luminance": 0.00633
}

Semantic roles & 50–950 ramp

primary
#1F072D
secondary
#3E6D23
accent
#F0387C
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F072D

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

Preview Lab → · Contrast checker → · Palette generator →

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