#040E2D#040E2D

#040E2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.065 H 264.9°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#040E2D
RGBrgb(4, 14, 45)
HSLhsl(225, 84%, 10%)
HSVhsv(225, 91%, 18%)
CMYKcmyk(91.1%, 68.9%, 0%, 82.4%)
CIE-LABlab(4.78, 7.27, -21.38)
CIE-LCHlch(4.78, 22.58, 288.78°)
OKLaboklab(17.76% -0.0058 -0.0645)
OKLCHoklch(17.76% 0.065 264.9)
XYZxyz(0.6806, 0.5293, 2.5484)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E2D #2D2304
analogous
#04232D #040E2D #0F042D
triadic
#040E2D #2D040E #0E2D04
tetradic
#040E2D #2D0423 #2D2304 #042D0F
square
#040E2D #2D0423 #2D2304 #042D0F
split-complementary
#040E2D #2D0F04 #232D04
monochromatic
#02091C #02091C #040E2D #091F65 #0E319D

Accessibility & contrast

On white

18.99
#040E2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040E2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E2D
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E2D#FFFFFF#000000##FFFFFF
##040E2D1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#00161B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040e2d;
/* rgb */ color: rgb(4, 14, 45);
/* oklch */ color: oklch(17.8% 0.065 264.9);
Tailwind
colors: {
  custom: {
    50: '#4a4d66',
    500: '#040e2d',
    950: '#000000',
  },
}
SCSS
$custom: #040e2d;
$custom-light: #4a4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#040e2d",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 45
  },
  "hsl": {
    "h": 225.366,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17763,
    "c": 0.06477,
    "h": 264.9
  },
  "luminance": 0.00529
}

Semantic roles & 50–950 ramp

primary
#040E2D
secondary
#705C1D
accent
#C82EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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