#04073B#04073B

#04073B is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.097 H 268.5°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#04073B
RGBrgb(4, 7, 59)
HSLhsl(237, 87%, 12%)
HSVhsv(237, 93%, 23%)
CMYKcmyk(93.2%, 88.1%, 0%, 76.9%)
CIE-LABlab(4.46, 18.20, -32.22)
CIE-LCHlch(4.46, 37.00, 299.46°)
OKLaboklab(17.92% -0.0026 -0.0969)
OKLCHoklch(17.92% 0.097 268.5)
XYZxyz(0.9152, 0.4934, 4.1838)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04073B #3B3804
analogous
#04233B #04073B #1C043B
triadic
#04073B #3B0407 #073B04
tetradic
#04073B #3B0423 #3B3804 #043B1C
square
#04073B #3B0423 #3B3804 #043B1C
split-complementary
#04073B #3B1C04 #233B04
monochromatic
#02031D #02031D #04073B #080E74 #0C15AE

Accessibility & contrast

On white

19.11
#04073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#04073B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04073B
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04073B#FFFFFF#000000##FFFFFF
##04073B1.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123C
Deuteranopia (green-blind)
#000C3A
Tritanopia (blue-blind)
#001720
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #04073b;
/* rgb */ color: rgb(4, 7, 59);
/* oklch */ color: oklch(17.9% 0.097 268.5);
Tailwind
colors: {
  custom: {
    50: '#4f4972',
    500: '#04073b',
    950: '#000000',
  },
}
SCSS
$custom: #04073b;
$custom-light: #4f4972;
$custom-dark: #000000;
JSON
{
  "hex": "#04073b",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 236.727,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.17921,
    "c": 0.09693,
    "h": 268.5
  },
  "luminance": 0.00494
}

Semantic roles & 50–950 ramp

primary
#04073B
secondary
#7D781E
accent
#F22AFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04073B

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

Preview Lab → · Contrast checker → · Palette generator →

#04073B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva