#040E3B#040E3B

#040E3B is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.3% C 0.088 H 266.3°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#040E3B
RGBrgb(4, 14, 59)
HSLhsl(229, 87%, 12%)
HSVhsv(229, 93%, 23%)
CMYKcmyk(93.2%, 76.3%, 0%, 76.9%)
CIE-LABlab(5.92, 14.93, -29.84)
CIE-LCHlch(5.92, 33.37, 296.59°)
OKLaboklab(19.33% -0.0057 -0.0875)
OKLCHoklch(19.33% 0.088 266.3)
XYZxyz(0.9962, 0.6555, 4.2108)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E3B #3B3104
analogous
#042A3B #040E3B #16043B
triadic
#040E3B #3B040E #0E3B04
tetradic
#040E3B #3B042A #3B3104 #043B16
square
#040E3B #3B042A #3B3104 #043B16
split-complementary
#040E3B #3B1604 #2A3B04
monochromatic
#02071D #02071D #040E3B #081C74 #0C29AE

Accessibility & contrast

On white

18.56
#040E3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#040E3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E3B
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E3B#FFFFFF#000000##FFFFFF
##040E3B1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163C
Deuteranopia (green-blind)
#00103A
Tritanopia (blue-blind)
#001A22
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #040e3b;
/* rgb */ color: rgb(4, 14, 59);
/* oklch */ color: oklch(19.3% 0.088 266.3);
Tailwind
colors: {
  custom: {
    50: '#4f4c71',
    500: '#040e3b',
    950: '#000000',
  },
}
SCSS
$custom: #040e3b;
$custom-light: #4f4c71;
$custom-dark: #000000;
JSON
{
  "hex": "#040e3b",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 59
  },
  "hsl": {
    "h": 229.091,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19334,
    "c": 0.0877,
    "h": 266.3
  },
  "luminance": 0.00656
}

Semantic roles & 50–950 ramp

primary
#040E3B
secondary
#7D6C1E
accent
#D72AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #040E3B

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

Preview Lab → · Contrast checker → · Palette generator →

#040E3B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva