#040A2E#040A2E

#040A2E is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.073 H 268.0°. Best body text is #FFFFFF at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#040A2E
RGBrgb(4, 10, 46)
HSLhsl(231, 84%, 10%)
HSVhsv(231, 91%, 18%)
CMYKcmyk(91.3%, 78.3%, 0%, 82%)
CIE-LABlab(3.98, 9.56, -23.41)
CIE-LCHlch(3.98, 25.28, 292.21°)
OKLaboklab(16.9% -0.0025 -0.0726)
OKLCHoklch(16.9% 0.073 268)
XYZxyz(0.6516, 0.4401, 2.6348)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A2E #2E2804
analogous
#041F2E #040A2E #13042E
triadic
#040A2E #2E040A #0A2E04
tetradic
#040A2E #2E041F #2E2804 #042E13
square
#040A2E #2E041F #2E2804 #042E13
split-complementary
#040A2E #2E1304 #1F2E04
monochromatic
#02061C #02061C #040A2E #091666 #0E229F

Accessibility & contrast

On white

19.30
#040A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A2E
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A2E#FFFFFF#000000##FFFFFF
##040A2E1.0019.301.0919.30
#FFFFFF19.301.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#000C2D
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040a2e;
/* rgb */ color: rgb(4, 10, 46);
/* oklch */ color: oklch(16.9% 0.073 268.0);
Tailwind
colors: {
  custom: {
    50: '#4a4b67',
    500: '#040a2e',
    950: '#000000',
  },
}
SCSS
$custom: #040a2e;
$custom-light: #4a4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#040a2e",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 231.429,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16898,
    "c": 0.0726,
    "h": 268
  },
  "luminance": 0.0044
}

Semantic roles & 50–950 ramp

primary
#040A2E
secondary
#71651D
accent
#DD2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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