#04070F#04070F

#04070F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.9% C 0.020 H 262.9°. Best body text is #FFFFFF at 20.15:1 contrast (WCAG AA passes).

Color values

HEX#04070F
RGBrgb(4, 7, 15)
HSLhsl(224, 58%, 4%)
HSVhsv(224, 73%, 6%)
CMYKcmyk(73.3%, 53.3%, 0%, 94.1%)
CIE-LABlab(1.92, 0.43, -3.58)
CIE-LCHlch(1.92, 3.61, 276.85°)
OKLaboklab(12.89% -0.0025 -0.02)
OKLCHoklch(12.89% 0.02 262.9)
XYZxyz(0.2122, 0.2122, 0.4816)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04070F #0F0C04
analogous
#040C0F #04070F #06040F
triadic
#04070F #0F0407 #070F04
tetradic
#04070F #0F040C #0F0C04 #040F06
square
#04070F #0F040C #0F0C04 #040F06
split-complementary
#04070F #0F0604 #0C0F04
monochromatic
#060B18 #060B18 #060B18 #111E3F #1E3470

Accessibility & contrast

On white

20.15
#04070F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04070F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04070F
20.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04070F#FFFFFF#000000##FFFFFF
##04070F1.0020.151.0420.15
#FFFFFF20.151.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05080F
Deuteranopia (green-blind)
#04070F
Tritanopia (blue-blind)
#02090A
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04070f;
/* rgb */ color: rgb(4, 7, 15);
/* oklch */ color: oklch(12.9% 0.020 262.9);
Tailwind
colors: {
  custom: {
    50: '#484a4e',
    500: '#04070f',
    950: '#000000',
  },
}
SCSS
$custom: #04070f;
$custom-light: #484a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#04070f",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 15
  },
  "hsl": {
    "h": 223.636,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.12885,
    "c": 0.02013,
    "h": 262.9
  },
  "luminance": 0.00212
}

Semantic roles & 50–950 ramp

primary
#04070F
secondary
#4E4221
accent
#B747E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #04070F

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

Preview Lab → · Contrast checker → · Palette generator →

#04070F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva