#040437#040437

#040437 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.096 H 269.7°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#040437
RGBrgb(4, 4, 55)
HSLhsl(240, 86%, 12%)
HSVhsv(240, 93%, 22%)
CMYKcmyk(92.7%, 92.7%, 0%, 78.4%)
CIE-LABlab(3.51, 16.94, -30.84)
CIE-LCHlch(3.51, 35.19, 298.79°)
OKLaboklab(16.69% -0.0005 -0.0956)
OKLCHoklch(16.69% 0.096 269.7)
XYZxyz(0.7828, 0.3884, 3.6474)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040437 #373704
analogous
#041E37 #040437 #1E0437
triadic
#040437 #370404 #043704
tetradic
#040437 #37041E #373704 #04371E
square
#040437 #37041E #373704 #04371E
split-complementary
#040437 #371E04 #1E3704
monochromatic
#02021D #02021D #040437 #080870 #0C0CA9

Accessibility & contrast

On white

19.49
#040437 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040437 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040437
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040437#FFFFFF#000000##FFFFFF
##0404371.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F38
Deuteranopia (green-blind)
#000A36
Tritanopia (blue-blind)
#00131D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040437;
/* rgb */ color: rgb(4, 4, 55);
/* oklch */ color: oklch(16.7% 0.096 269.7);
Tailwind
colors: {
  custom: {
    50: '#4d486e',
    500: '#040437',
    950: '#000000',
  },
}
SCSS
$custom: #040437;
$custom-light: #4d486e;
$custom-dark: #000000;
JSON
{
  "hex": "#040437",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 55
  },
  "hsl": {
    "h": 240,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.16694,
    "c": 0.09564,
    "h": 269.7
  },
  "luminance": 0.00388
}

Semantic roles & 50–950 ramp

primary
#040437
secondary
#79791E
accent
#FD2BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040437

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

Preview Lab → · Contrast checker → · Palette generator →

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