#070C1F#070C1F

#070C1F is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.2% C 0.041 H 269.6°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#070C1F
RGBrgb(7, 12, 31)
HSLhsl(228, 63%, 7%)
HSVhsv(228, 77%, 12%)
CMYKcmyk(77.4%, 61.3%, 0%, 87.8%)
CIE-LABlab(3.68, 3.25, -12.37)
CIE-LCHlch(3.68, 12.79, 284.75°)
OKLaboklab(16.15% -0.0003 -0.0409)
OKLCHoklch(16.15% 0.041 269.6)
XYZxyz(0.4663, 0.4070, 1.3500)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070C1F #1F1A07
analogous
#07181F #070C1F #0E071F
triadic
#070C1F #1F070C #0C1F07
tetradic
#070C1F #1F0718 #1F1A07 #071F0E
square
#070C1F #1F0718 #1F1A07 #071F0E
split-complementary
#070C1F #1F0E07 #181F07
monochromatic
#060A19 #060A19 #070C1F #121F51 #1E3383

Accessibility & contrast

On white

19.42
#070C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#070C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070C1F
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070C1F#FFFFFF#000000##FFFFFF
##070C1F1.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050E20
Deuteranopia (green-blind)
#030C1F
Tritanopia (blue-blind)
#001013
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #070c1f;
/* rgb */ color: rgb(7, 12, 31);
/* oklch */ color: oklch(16.2% 0.041 269.6);
Tailwind
colors: {
  custom: {
    50: '#494c5a',
    500: '#070c1f',
    950: '#000000',
  },
}
SCSS
$custom: #070c1f;
$custom-light: #494c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#070c1f",
  "rgb": {
    "r": 7,
    "g": 12,
    "b": 31
  },
  "hsl": {
    "h": 227.5,
    "s": 63.158,
    "l": 7.451
  },
  "oklch": {
    "l": 0.16152,
    "c": 0.04092,
    "h": 269.6
  },
  "luminance": 0.00407
}

Semantic roles & 50–950 ramp

primary
#070C1F
secondary
#5E5224
accent
#C442E6
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010103
muted
#777778

Preview Lab

Preview with #070C1F

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

Preview Lab → · Contrast checker → · Palette generator →

#070C1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva