#040435#040435

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

Color values

HEX#040435
RGBrgb(4, 4, 53)
HSLhsl(240, 86%, 11%)
HSVhsv(240, 92%, 21%)
CMYKcmyk(92.5%, 92.5%, 0%, 79.2%)
CIE-LABlab(3.34, 15.76, -29.64)
CIE-LCHlch(3.34, 33.57, 297.99°)
OKLaboklab(16.4% 0 -0.0928)
OKLCHoklch(16.4% 0.093 270)
XYZxyz(0.7359, 0.3696, 3.4000)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040435 #353504
analogous
#041C35 #040435 #1C0435
triadic
#040435 #350404 #043504
tetradic
#040435 #35041C #353504 #04351C
square
#040435 #35041C #353504 #04351C
split-complementary
#040435 #351C04 #1C3504
monochromatic
#02021C #02021C #040435 #08086E #0D0DA7

Accessibility & contrast

On white

19.55
#040435 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040435 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040435
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040435#FFFFFF#000000##FFFFFF
##0404351.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040435;
/* rgb */ color: rgb(4, 4, 53);
/* oklch */ color: oklch(16.4% 0.093 270.0);
Tailwind
colors: {
  custom: {
    50: '#4c486d',
    500: '#040435',
    950: '#000000',
  },
}
SCSS
$custom: #040435;
$custom-light: #4c486d;
$custom-dark: #000000;
JSON
{
  "hex": "#040435",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 53
  },
  "hsl": {
    "h": 240,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.164,
    "c": 0.09282,
    "h": 270
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#040435
secondary
#77771E
accent
#FC2CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #040435

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

Preview Lab → · Contrast checker → · Palette generator →

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