#040E2A#040E2A

#040E2A is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.5% C 0.060 H 264.2°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#040E2A
RGBrgb(4, 14, 42)
HSLhsl(224, 83%, 9%)
HSVhsv(224, 90%, 16%)
CMYKcmyk(90.5%, 66.7%, 0%, 83.5%)
CIE-LABlab(4.58, 5.86, -19.44)
CIE-LCHlch(4.58, 20.30, 286.77°)
OKLaboklab(17.46% -0.0061 -0.0592)
OKLCHoklch(17.46% 0.06 264.2)
XYZxyz(0.6249, 0.5070, 2.2550)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E2A #2A2004
analogous
#04212A #040E2A #0D042A
triadic
#040E2A #2A040E #0E2A04
tetradic
#040E2A #2A0421 #2A2004 #042A0D
square
#040E2A #2A0421 #2A2004 #042A0D
split-complementary
#040E2A #2A0D04 #212A04
monochromatic
#03091C #03091C #040E2A #092162 #0F339A

Accessibility & contrast

On white

19.07
#040E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E2A
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E2A#FFFFFF#000000##FFFFFF
##040E2A1.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040e2a;
/* rgb */ color: rgb(4, 14, 42);
/* oklch */ color: oklch(17.5% 0.060 264.2);
Tailwind
colors: {
  custom: {
    50: '#494d63',
    500: '#040e2a',
    950: '#000000',
  },
}
SCSS
$custom: #040e2a;
$custom-light: #494d63;
$custom-dark: #000000;
JSON
{
  "hex": "#040e2a",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 42
  },
  "hsl": {
    "h": 224.211,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17455,
    "c": 0.05956,
    "h": 264.2
  },
  "luminance": 0.00507
}

Semantic roles & 50–950 ramp

primary
#040E2A
secondary
#6D581D
accent
#C42FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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