#040E2B#040E2B

#040E2B is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.061 H 264.4°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#040E2B
RGBrgb(4, 14, 43)
HSLhsl(225, 83%, 9%)
HSVhsv(225, 91%, 17%)
CMYKcmyk(90.7%, 67.4%, 0%, 83.1%)
CIE-LABlab(4.64, 6.32, -20.09)
CIE-LCHlch(4.64, 21.06, 287.46°)
OKLaboklab(17.56% -0.006 -0.061)
OKLCHoklch(17.56% 0.061 264.4)
XYZxyz(0.6430, 0.5142, 2.3504)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E2B #2B2104
analogous
#04222B #040E2B #0E042B
triadic
#040E2B #2B040E #0E2B04
tetradic
#040E2B #2B0422 #2B2104 #042B0E
square
#040E2B #2B0422 #2B2104 #042B0E
split-complementary
#040E2B #2B0E04 #222B04
monochromatic
#03091C #03091C #040E2B #092063 #0E329B

Accessibility & contrast

On white

19.04
#040E2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040E2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E2B
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E2B#FFFFFF#000000##FFFFFF
##040E2B1.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#00151A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040e2b;
/* rgb */ color: rgb(4, 14, 43);
/* oklch */ color: oklch(17.6% 0.061 264.4);
Tailwind
colors: {
  custom: {
    50: '#494d64',
    500: '#040e2b',
    950: '#000000',
  },
}
SCSS
$custom: #040e2b;
$custom-light: #494d64;
$custom-dark: #000000;
JSON
{
  "hex": "#040e2b",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 43
  },
  "hsl": {
    "h": 224.615,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17557,
    "c": 0.06131,
    "h": 264.4
  },
  "luminance": 0.00514
}

Semantic roles & 50–950 ramp

primary
#040E2B
secondary
#6E591D
accent
#C52EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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