#040535#040535

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

Color values

HEX#040535
RGBrgb(4, 5, 53)
HSLhsl(239, 86%, 11%)
HSVhsv(239, 92%, 21%)
CMYKcmyk(92.5%, 90.6%, 0%, 79.2%)
CIE-LABlab(3.53, 15.35, -29.32)
CIE-LCHlch(3.53, 33.10, 297.64°)
OKLaboklab(16.64% -0.0005 -0.0912)
OKLCHoklch(16.64% 0.091 269.7)
XYZxyz(0.7467, 0.3913, 3.4036)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040535 #353404
analogous
#041D35 #040535 #1B0435
triadic
#040535 #350405 #053504
tetradic
#040535 #35041D #353404 #04351B
square
#040535 #35041D #353404 #04351B
split-complementary
#040535 #351B04 #1D3504
monochromatic
#02031C #02031C #040535 #080A6E #0D10A7

Accessibility & contrast

On white

19.48
#040535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040535
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040535#FFFFFF#000000##FFFFFF
##0405351.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F36
Deuteranopia (green-blind)
#000A34
Tritanopia (blue-blind)
#00131C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040535;
/* rgb */ color: rgb(4, 5, 53);
/* oklch */ color: oklch(16.6% 0.091 269.7);
Tailwind
colors: {
  custom: {
    50: '#4c486d',
    500: '#040535',
    950: '#000000',
  },
}
SCSS
$custom: #040535;
$custom-light: #4c486d;
$custom-dark: #000000;
JSON
{
  "hex": "#040535",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 238.776,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.16641,
    "c": 0.0912,
    "h": 269.7
  },
  "luminance": 0.00391
}

Semantic roles & 50–950 ramp

primary
#040535
secondary
#77751E
accent
#F82CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #040535

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

Preview Lab → · Contrast checker → · Palette generator →

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