#040426#040426

#040426 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.3% C 0.070 H 273.0°. Best body text is #FFFFFF at 19.99:1 contrast (WCAG AA passes).

Color values

HEX#040426
RGBrgb(4, 4, 38)
HSLhsl(240, 81%, 8%)
HSVhsv(240, 89%, 15%)
CMYKcmyk(89.5%, 89.5%, 0%, 85.1%)
CIE-LABlab(2.28, 8.32, -19.98)
CIE-LCHlch(2.28, 21.64, 292.62°)
OKLaboklab(14.27% 0.0037 -0.0702)
OKLCHoklch(14.27% 0.07 273)
XYZxyz(0.4432, 0.2525, 1.8587)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040426 #262604
analogous
#041526 #040426 #150426
triadic
#040426 #260404 #042604
tetradic
#040426 #260415 #262604 #042615
square
#040426 #260415 #262604 #042615
split-complementary
#040426 #261504 #152604
monochromatic
#03031C #03031C #040426 #0A0A5D #101095

Accessibility & contrast

On white

19.99
#040426 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040426 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040426
19.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040426#FFFFFF#000000##FFFFFF
##0404261.0019.991.0519.99
#FFFFFF19.991.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A27
Deuteranopia (green-blind)
#000725
Tritanopia (blue-blind)
#000D13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040426;
/* rgb */ color: rgb(4, 4, 38);
/* oklch */ color: oklch(14.3% 0.070 273.0);
Tailwind
colors: {
  custom: {
    50: '#484860',
    500: '#040426',
    950: '#000000',
  },
}
SCSS
$custom: #040426;
$custom-light: #484860;
$custom-dark: #000000;
JSON
{
  "hex": "#040426",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 38
  },
  "hsl": {
    "h": 240,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.14273,
    "c": 0.0703,
    "h": 273
  },
  "luminance": 0.00253
}

Semantic roles & 50–950 ramp

primary
#040426
secondary
#69691D
accent
#F730F7
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010005
muted
#777779

Preview Lab

Preview with #040426

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

Preview Lab → · Contrast checker → · Palette generator →

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