#040E2E#040E2E

#040E2E is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.066 H 265.1°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#040E2E
RGBrgb(4, 14, 46)
HSLhsl(226, 84%, 10%)
HSVhsv(226, 91%, 18%)
CMYKcmyk(91.3%, 69.6%, 0%, 82%)
CIE-LABlab(4.85, 7.77, -22.02)
CIE-LCHlch(4.85, 23.35, 289.43°)
OKLaboklab(17.87% -0.0057 -0.0662)
OKLCHoklch(17.87% 0.066 265.1)
XYZxyz(0.7001, 0.5371, 2.6510)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E2E #2E2404
analogous
#04232E #040E2E #0F042E
triadic
#040E2E #2E040E #0E2E04
tetradic
#040E2E #2E0423 #2E2404 #042E0F
square
#040E2E #2E0423 #2E2404 #042E0F
split-complementary
#040E2E #2E0F04 #232E04
monochromatic
#02091C #02091C #040E2E #091F66 #0E309F

Accessibility & contrast

On white

18.96
#040E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E2E
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E2E#FFFFFF#000000##FFFFFF
##040E2E1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040e2e;
/* rgb */ color: rgb(4, 14, 46);
/* oklch */ color: oklch(17.9% 0.066 265.1);
Tailwind
colors: {
  custom: {
    50: '#4a4d67',
    500: '#040e2e',
    950: '#000000',
  },
}
SCSS
$custom: #040e2e;
$custom-light: #4a4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#040e2e",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 46
  },
  "hsl": {
    "h": 225.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17869,
    "c": 0.06649,
    "h": 265.1
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#040E2E
secondary
#715D1D
accent
#CA2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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