#04072F#04072F

#04072F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.3% C 0.079 H 269.6°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#04072F
RGBrgb(4, 7, 47)
HSLhsl(236, 84%, 10%)
HSVhsv(236, 91%, 18%)
CMYKcmyk(91.5%, 85.1%, 0%, 81.6%)
CIE-LABlab(3.46, 11.27, -24.98)
CIE-LCHlch(3.46, 27.40, 294.28°)
OKLaboklab(16.31% -0.0005 -0.0789)
OKLCHoklch(16.31% 0.079 269.6)
XYZxyz(0.6390, 0.3829, 2.7290)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072F #2F2C04
analogous
#041C2F #04072F #17042F
triadic
#04072F #2F0407 #072F04
tetradic
#04072F #2F041C #2F2C04 #042F17
square
#04072F #2F041C #2F2C04 #042F17
split-complementary
#04072F #2F1704 #1C2F04
monochromatic
#02041C #02041C #04072F #090F67 #0E18A0

Accessibility & contrast

On white

19.51
#04072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#04072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04072F
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072F#FFFFFF#000000##FFFFFF
##04072F1.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04072f;
/* rgb */ color: rgb(4, 7, 47);
/* oklch */ color: oklch(16.3% 0.079 269.6);
Tailwind
colors: {
  custom: {
    50: '#4a4968',
    500: '#04072f',
    950: '#000000',
  },
}
SCSS
$custom: #04072f;
$custom-light: #4a4968;
$custom-dark: #000000;
JSON
{
  "hex": "#04072f",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 235.814,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16308,
    "c": 0.07889,
    "h": 269.6
  },
  "luminance": 0.00383
}

Semantic roles & 50–950 ramp

primary
#04072F
secondary
#726C1D
accent
#EC2DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04072F

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

Preview Lab → · Contrast checker → · Palette generator →

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