#040737#040737

#040737 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.091 H 268.8°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#040737
RGBrgb(4, 7, 55)
HSLhsl(236, 86%, 12%)
HSVhsv(236, 93%, 22%)
CMYKcmyk(92.7%, 87.3%, 0%, 78.4%)
CIE-LABlab(4.10, 15.74, -29.89)
CIE-LCHlch(4.10, 33.78, 297.78°)
OKLaboklab(17.37% -0.0018 -0.0911)
OKLCHoklch(17.37% 0.091 268.8)
XYZxyz(0.8154, 0.4535, 3.6582)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040737 #373404
analogous
#042137 #040737 #1B0437
triadic
#040737 #370407 #073704
tetradic
#040737 #370421 #373404 #04371B
square
#040737 #370421 #373404 #04371B
split-complementary
#040737 #371B04 #213704
monochromatic
#02041D #02041D #040737 #080E70 #0C16A9

Accessibility & contrast

On white

19.25
#040737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040737 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040737
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040737#FFFFFF#000000##FFFFFF
##0407371.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001138
Deuteranopia (green-blind)
#000C36
Tritanopia (blue-blind)
#00151E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040737;
/* rgb */ color: rgb(4, 7, 55);
/* oklch */ color: oklch(17.4% 0.091 268.8);
Tailwind
colors: {
  custom: {
    50: '#4d496e',
    500: '#040737',
    950: '#000000',
  },
}
SCSS
$custom: #040737;
$custom-light: #4d496e;
$custom-dark: #000000;
JSON
{
  "hex": "#040737",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 236.471,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17373,
    "c": 0.0911,
    "h": 268.8
  },
  "luminance": 0.00454
}

Semantic roles & 50–950 ramp

primary
#040737
secondary
#79741E
accent
#F02BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040737

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

Preview Lab → · Contrast checker → · Palette generator →

#040737 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva