#04072E#04072E

#04072E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.2% C 0.077 H 269.7°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#04072E
RGBrgb(4, 7, 46)
HSLhsl(236, 84%, 10%)
HSVhsv(236, 91%, 18%)
CMYKcmyk(91.3%, 84.8%, 0%, 82%)
CIE-LABlab(3.39, 10.76, -24.34)
CIE-LCHlch(3.39, 26.61, 293.84°)
OKLaboklab(16.18% -0.0004 -0.0773)
OKLCHoklch(16.18% 0.077 269.7)
XYZxyz(0.6190, 0.3750, 2.6240)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072E #2E2B04
analogous
#041C2E #04072E #16042E
triadic
#04072E #2E0407 #072E04
tetradic
#04072E #2E041C #2E2B04 #042E16
square
#04072E #2E041C #2E2B04 #042E16
split-complementary
#04072E #2E1604 #1C2E04
monochromatic
#02041C #02041C #04072E #091066 #0E189F

Accessibility & contrast

On white

19.53
#04072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04072E
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072E#FFFFFF#000000##FFFFFF
##04072E1.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2F
Deuteranopia (green-blind)
#000A2D
Tritanopia (blue-blind)
#001219
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04072e;
/* rgb */ color: rgb(4, 7, 46);
/* oklch */ color: oklch(16.2% 0.077 269.7);
Tailwind
colors: {
  custom: {
    50: '#4a4967',
    500: '#04072e',
    950: '#000000',
  },
}
SCSS
$custom: #04072e;
$custom-light: #4a4967;
$custom-dark: #000000;
JSON
{
  "hex": "#04072e",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 235.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16179,
    "c": 0.07732,
    "h": 269.7
  },
  "luminance": 0.00375
}

Semantic roles & 50–950 ramp

primary
#04072E
secondary
#716B1D
accent
#EC2EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04072E

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

Preview Lab → · Contrast checker → · Palette generator →

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