#040536#040536

#040536 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.093 H 269.5°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#040536
RGBrgb(4, 5, 54)
HSLhsl(239, 86%, 11%)
HSVhsv(239, 93%, 21%)
CMYKcmyk(92.6%, 90.7%, 0%, 78.8%)
CIE-LABlab(3.62, 15.94, -29.92)
CIE-LCHlch(3.62, 33.91, 298.05°)
OKLaboklab(16.78% -0.0007 -0.0926)
OKLCHoklch(16.78% 0.093 269.5)
XYZxyz(0.7700, 0.4006, 3.5261)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040536 #363504
analogous
#041E36 #040536 #1C0436
triadic
#040536 #360405 #053604
tetradic
#040536 #36041E #363504 #04361C
square
#040536 #36041E #363504 #04361C
split-complementary
#040536 #361C04 #1E3604
monochromatic
#02031C #02031C #040536 #080A6F #0C10A8

Accessibility & contrast

On white

19.44
#040536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040536
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040536#FFFFFF#000000##FFFFFF
##0405361.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001037
Deuteranopia (green-blind)
#000A35
Tritanopia (blue-blind)
#00141D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040536;
/* rgb */ color: rgb(4, 5, 54);
/* oklch */ color: oklch(16.8% 0.093 269.5);
Tailwind
colors: {
  custom: {
    50: '#4d486d',
    500: '#040536',
    950: '#000000',
  },
}
SCSS
$custom: #040536;
$custom-light: #4d486d;
$custom-dark: #000000;
JSON
{
  "hex": "#040536",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 54
  },
  "hsl": {
    "h": 238.8,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.16783,
    "c": 0.09264,
    "h": 269.5
  },
  "luminance": 0.00401
}

Semantic roles & 50–950 ramp

primary
#040536
secondary
#78761E
accent
#F82BFC
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040536

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

Preview Lab → · Contrast checker → · Palette generator →

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