#1F072F#1F072F

#1F072F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.077 H 308.4°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#1F072F
RGBrgb(31, 7, 47)
HSLhsl(276, 74%, 11%)
HSVhsv(276, 85%, 18%)
CMYKcmyk(34%, 85.1%, 0%, 81.6%)
CIE-LABlab(5.86, 20.70, -21.02)
CIE-LCHlch(5.86, 29.50, 314.57°)
OKLaboklab(19.61% 0.0481 -0.0607)
OKLCHoklch(19.61% 0.077 308.4)
XYZxyz(1.1540, 0.6485, 2.7532)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072F #172F07
analogous
#0B072F #1F072F #2F072B
triadic
#1F072F #2F1F07 #072F1F
tetradic
#1F072F #2F0B07 #172F07 #072B2F
square
#1F072F #2F0B07 #172F07 #072B2F
split-complementary
#1F072F #2B2F07 #072F0B
monochromatic
#12041B #12041B #1F072F #420F64 #65179A

Accessibility & contrast

On white

18.59
#1F072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F072F
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072F#FFFFFF#000000##FFFFFF
##1F072F1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#1D101A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f072f;
/* rgb */ color: rgb(31, 7, 47);
/* oklch */ color: oklch(19.6% 0.077 308.4);
Tailwind
colors: {
  custom: {
    50: '#5c4968',
    500: '#1f072f',
    950: '#000000',
  },
}
SCSS
$custom: #1f072f;
$custom-light: #5c4968;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072f",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 276,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1961,
    "c": 0.07742,
    "h": 308.4
  },
  "luminance": 0.00649
}

Semantic roles & 50–950 ramp

primary
#1F072F
secondary
#416F23
accent
#F13781
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F072F

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

Preview Lab → · Contrast checker → · Palette generator →

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