#1F072E#1F072E

#1F072E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.076 H 309.3°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#1F072E
RGBrgb(31, 7, 46)
HSLhsl(277, 74%, 10%)
HSVhsv(277, 85%, 18%)
CMYKcmyk(32.6%, 84.8%, 0%, 82%)
CIE-LABlab(5.79, 20.35, -20.38)
CIE-LCHlch(5.79, 28.80, 314.95°)
OKLaboklab(19.52% 0.0483 -0.0589)
OKLCHoklch(19.52% 0.076 309.3)
XYZxyz(1.1341, 0.6405, 2.6481)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072E #162E07
analogous
#0B072E #1F072E #2E0729
triadic
#1F072E #2E1F07 #072E1F
tetradic
#1F072E #2E0B07 #162E07 #07292E
square
#1F072E #2E0B07 #162E07 #07292E
split-complementary
#1F072E #292E07 #072E0B
monochromatic
#12041B #12041B #1F072E #430F63 #671798

Accessibility & contrast

On white

18.61
#1F072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F072E
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072E#FFFFFF#000000##FFFFFF
##1F072E1.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#02132D
Tritanopia (blue-blind)
#1D0F19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f072e;
/* rgb */ color: rgb(31, 7, 46);
/* oklch */ color: oklch(19.5% 0.076 309.3);
Tailwind
colors: {
  custom: {
    50: '#5c4967',
    500: '#1f072e',
    950: '#000000',
  },
}
SCSS
$custom: #1f072e;
$custom-light: #5c4967;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072e",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 276.923,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19518,
    "c": 0.07615,
    "h": 309.3
  },
  "luminance": 0.00641
}

Semantic roles & 50–950 ramp

primary
#1F072E
secondary
#406E23
accent
#F0387F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F072E

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

Preview Lab → · Contrast checker → · Palette generator →

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