#1F072C#1F072C

#1F072C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.074 H 311.3°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#1F072C
RGBrgb(31, 7, 44)
HSLhsl(279, 73%, 10%)
HSVhsv(279, 84%, 17%)
CMYKcmyk(29.5%, 84.1%, 0%, 82.7%)
CIE-LABlab(5.65, 19.64, -19.11)
CIE-LCHlch(5.65, 27.40, 315.80°)
OKLaboklab(19.34% 0.0486 -0.0553)
OKLCHoklch(19.34% 0.074 311.3)
XYZxyz(1.0956, 0.6251, 2.4453)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072C #142C07
analogous
#0D072C #1F072C #2C0726
triadic
#1F072C #2C1F07 #072C1F
tetradic
#1F072C #2C0D07 #142C07 #07262C
square
#1F072C #2C0D07 #142C07 #07262C
split-complementary
#1F072C #262C07 #072C0D
monochromatic
#13041A #13041A #1F072C #440F61 #691896

Accessibility & contrast

On white

18.67
#1F072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F072C
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072C#FFFFFF#000000##FFFFFF
##1F072C1.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#04132B
Tritanopia (blue-blind)
#1D0F18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f072c;
/* rgb */ color: rgb(31, 7, 44);
/* oklch */ color: oklch(19.3% 0.074 311.3);
Tailwind
colors: {
  custom: {
    50: '#5c4965',
    500: '#1f072c',
    950: '#000000',
  },
}
SCSS
$custom: #1f072c;
$custom-light: #5c4965;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072c",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 278.919,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.19338,
    "c": 0.07362,
    "h": 311.3
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#1F072C
secondary
#3D6C23
accent
#EF3979
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1F072C

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

Preview Lab → · Contrast checker → · Palette generator →

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