#040739#040739

#040739 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.094 H 268.7°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#040739
RGBrgb(4, 7, 57)
HSLhsl(237, 87%, 12%)
HSVhsv(237, 93%, 22%)
CMYKcmyk(93%, 87.7%, 0%, 77.6%)
CIE-LABlab(4.27, 16.98, -31.06)
CIE-LCHlch(4.27, 35.40, 298.66°)
OKLaboklab(17.65% -0.0022 -0.094)
OKLCHoklch(17.65% 0.094 268.7)
XYZxyz(0.8643, 0.4731, 3.9159)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040739 #393604
analogous
#042239 #040739 #1C0439
triadic
#040739 #390407 #073904
tetradic
#040739 #390422 #393604 #04391C
square
#040739 #390422 #393604 #04391C
split-complementary
#040739 #391C04 #223904
monochromatic
#02041D #02041D #040739 #080E72 #0C15AB

Accessibility & contrast

On white

19.19
#040739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040739
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040739#FFFFFF#000000##FFFFFF
##0407391.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123A
Deuteranopia (green-blind)
#000C38
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040739;
/* rgb */ color: rgb(4, 7, 57);
/* oklch */ color: oklch(17.6% 0.094 268.7);
Tailwind
colors: {
  custom: {
    50: '#4e4970',
    500: '#040739',
    950: '#000000',
  },
}
SCSS
$custom: #040739;
$custom-light: #4e4970;
$custom-dark: #000000;
JSON
{
  "hex": "#040739",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 236.604,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17646,
    "c": 0.09404,
    "h": 268.7
  },
  "luminance": 0.00473
}

Semantic roles & 50–950 ramp

primary
#040739
secondary
#7B761E
accent
#F12BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040739

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

Preview Lab → · Contrast checker → · Palette generator →

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