#040439#040439

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

Color values

HEX#040439
RGBrgb(4, 4, 57)
HSLhsl(240, 87%, 12%)
HSVhsv(240, 93%, 22%)
CMYKcmyk(93%, 93%, 0%, 77.6%)
CIE-LABlab(3.69, 18.19, -32.02)
CIE-LCHlch(3.69, 36.82, 299.60°)
OKLaboklab(16.99% -0.001 -0.0984)
OKLCHoklch(16.99% 0.098 269.4)
XYZxyz(0.8318, 0.4080, 3.9050)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040439 #393904
analogous
#041F39 #040439 #1F0439
triadic
#040439 #390404 #043904
tetradic
#040439 #39041F #393904 #04391F
square
#040439 #39041F #393904 #04391F
split-complementary
#040439 #391F04 #1F3904
monochromatic
#02021D #02021D #040439 #080872 #0C0CAB

Accessibility & contrast

On white

19.42
#040439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040439
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040439#FFFFFF#000000##FFFFFF
##0404391.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103A
Deuteranopia (green-blind)
#000A38
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040439;
/* rgb */ color: rgb(4, 4, 57);
/* oklch */ color: oklch(17.0% 0.098 269.4);
Tailwind
colors: {
  custom: {
    50: '#4e4770',
    500: '#040439',
    950: '#000000',
  },
}
SCSS
$custom: #040439;
$custom-light: #4e4770;
$custom-dark: #000000;
JSON
{
  "hex": "#040439",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 240,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.16988,
    "c": 0.09844,
    "h": 269.4
  },
  "luminance": 0.00408
}

Semantic roles & 50–950 ramp

primary
#040439
secondary
#7B7B1E
accent
#FD2BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040439

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

Preview Lab → · Contrast checker → · Palette generator →

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