#041440#041440

#041440 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.087 H 263.8°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#041440
RGBrgb(4, 20, 64)
HSLhsl(224, 88%, 13%)
HSVhsv(224, 94%, 25%)
CMYKcmyk(93.8%, 68.8%, 0%, 74.9%)
CIE-LABlab(8.09, 13.38, -29.88)
CIE-LCHlch(8.09, 32.74, 294.13°)
OKLaboklab(21.26% -0.0093 -0.0865)
OKLCHoklch(21.26% 0.087 263.8)
XYZxyz(1.2253, 0.8961, 4.9579)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041440 #403004
analogous
#043240 #041440 #120440
triadic
#041440 #400414 #144004
tetradic
#041440 #400432 #403004 #044012
square
#041440 #400432 #403004 #044012
split-complementary
#041440 #401204 #324004
monochromatic
#02091D #02091D #041440 #08267A #0B38B3

Accessibility & contrast

On white

17.81
#041440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#041440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041440
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041440#FFFFFF#000000##FFFFFF
##0414401.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #041440;
/* rgb */ color: rgb(4, 20, 64);
/* oklch */ color: oklch(21.3% 0.087 263.8);
Tailwind
colors: {
  custom: {
    50: '#515075',
    500: '#041440',
    950: '#000000',
  },
}
SCSS
$custom: #041440;
$custom-light: #515075;
$custom-dark: #000000;
JSON
{
  "hex": "#041440",
  "rgb": {
    "r": 4,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 224,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21264,
    "c": 0.08697,
    "h": 263.8
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#041440
secondary
#81671F
accent
#C629FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041440

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

Preview Lab → · Contrast checker → · Palette generator →

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