#04072A#04072A

#04072A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.7% C 0.071 H 270.1°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#04072A
RGBrgb(4, 7, 42)
HSLhsl(235, 83%, 9%)
HSVhsv(235, 90%, 16%)
CMYKcmyk(90.5%, 83.3%, 0%, 83.5%)
CIE-LABlab(3.12, 8.85, -21.75)
CIE-LCHlch(3.12, 23.48, 292.14°)
OKLaboklab(15.67% 0.0001 -0.0709)
OKLCHoklch(15.67% 0.071 270.1)
XYZxyz(0.5438, 0.3449, 2.2279)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04072A #2A2704
analogous
#041A2A #04072A #14042A
triadic
#04072A #2A0407 #072A04
tetradic
#04072A #2A041A #2A2704 #042A14
square
#04072A #2A041A #2A2704 #042A14
split-complementary
#04072A #2A1404 #1A2A04
monochromatic
#03051C #03051C #04072A #091062 #0F1A9A

Accessibility & contrast

On white

19.64
#04072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#04072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04072A
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04072A#FFFFFF#000000##FFFFFF
##04072A1.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04072a;
/* rgb */ color: rgb(4, 7, 42);
/* oklch */ color: oklch(15.7% 0.071 270.1);
Tailwind
colors: {
  custom: {
    50: '#494a64',
    500: '#04072a',
    950: '#000000',
  },
}
SCSS
$custom: #04072a;
$custom-light: #494a64;
$custom-dark: #000000;
JSON
{
  "hex": "#04072a",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 235.263,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15671,
    "c": 0.07086,
    "h": 270.1
  },
  "luminance": 0.00345
}

Semantic roles & 50–950 ramp

primary
#04072A
secondary
#6D661D
accent
#E92FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #04072A

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

Preview Lab → · Contrast checker → · Palette generator →

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