#040537#040537

#040537 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.094 H 269.4°. Best body text is #FFFFFF at 19.41:1 contrast (WCAG AA passes).

Color values

HEX#040537
RGBrgb(4, 5, 55)
HSLhsl(239, 86%, 12%)
HSVhsv(239, 93%, 22%)
CMYKcmyk(92.7%, 90.9%, 0%, 78.4%)
CIE-LABlab(3.70, 16.55, -30.52)
CIE-LCHlch(3.70, 34.72, 298.46°)
OKLaboklab(16.93% -0.001 -0.0941)
OKLCHoklch(16.93% 0.094 269.4)
XYZxyz(0.7937, 0.4101, 3.6510)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040537 #373604
analogous
#041F37 #040537 #1D0437
triadic
#040537 #370405 #053704
tetradic
#040537 #37041F #373604 #04371D
square
#040537 #37041F #373604 #04371D
split-complementary
#040537 #371D04 #1F3704
monochromatic
#02031D #02031D #040537 #080A70 #0C0FA9

Accessibility & contrast

On white

19.41
#040537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040537
19.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040537#FFFFFF#000000##FFFFFF
##0405371.0019.411.0819.41
#FFFFFF19.411.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001038
Deuteranopia (green-blind)
#000A36
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040537;
/* rgb */ color: rgb(4, 5, 55);
/* oklch */ color: oklch(16.9% 0.094 269.4);
Tailwind
colors: {
  custom: {
    50: '#4d486e',
    500: '#040537',
    950: '#000000',
  },
}
SCSS
$custom: #040537;
$custom-light: #4d486e;
$custom-dark: #000000;
JSON
{
  "hex": "#040537",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 238.824,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.16926,
    "c": 0.09408,
    "h": 269.4
  },
  "luminance": 0.0041
}

Semantic roles & 50–950 ramp

primary
#040537
secondary
#79771E
accent
#F92BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040537

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

Preview Lab → · Contrast checker → · Palette generator →

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