#040741#040741

#040741 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.105 H 268.0°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#040741
RGBrgb(4, 7, 65)
HSLhsl(237, 88%, 14%)
HSVhsv(237, 94%, 25%)
CMYKcmyk(93.8%, 89.2%, 0%, 74.5%)
CIE-LABlab(5.05, 21.66, -35.57)
CIE-LCHlch(5.05, 41.64, 301.35°)
OKLaboklab(18.76% -0.0037 -0.1054)
OKLCHoklch(18.76% 0.105 268)
XYZxyz(1.0799, 0.5593, 5.0510)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040741 #413E04
analogous
#042541 #040741 #1F0441
triadic
#040741 #410407 #074104
tetradic
#040741 #410425 #413E04 #04411F
square
#040741 #410425 #413E04 #04411F
split-complementary
#040741 #411F04 #254104
monochromatic
#02031D #02031D #040741 #080D7B #0B13B4

Accessibility & contrast

On white

18.89
#040741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040741
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040741#FFFFFF#000000##FFFFFF
##0407411.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001443
Deuteranopia (green-blind)
#000E40
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040741;
/* rgb */ color: rgb(4, 7, 65);
/* oklch */ color: oklch(18.8% 0.105 268.0);
Tailwind
colors: {
  custom: {
    50: '#524876',
    500: '#040741',
    950: '#000000',
  },
}
SCSS
$custom: #040741;
$custom-light: #524876;
$custom-dark: #000000;
JSON
{
  "hex": "#040741",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 237.049,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18758,
    "c": 0.10543,
    "h": 268
  },
  "luminance": 0.00559
}

Semantic roles & 50–950 ramp

primary
#040741
secondary
#827D1F
accent
#F429FF
background
#F5F4F7
surface
#E8E6ED
border
#C4C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #040741

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

Preview Lab → · Contrast checker → · Palette generator →

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