#040D25#040D25

#040D25 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.7% C 0.052 H 263.7°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#040D25
RGBrgb(4, 13, 37)
HSLhsl(224, 80%, 8%)
HSVhsv(224, 89%, 15%)
CMYKcmyk(89.2%, 64.9%, 0%, 85.5%)
CIE-LABlab(4.04, 4.21, -16.48)
CIE-LCHlch(4.04, 17.01, 284.33°)
OKLaboklab(16.69% -0.0057 -0.052)
OKLCHoklch(16.69% 0.052 263.7)
XYZxyz(0.5278, 0.4472, 1.8084)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D25 #251C04
analogous
#041D25 #040D25 #0B0425
triadic
#040D25 #25040D #0D2504
tetradic
#040D25 #25041D #251C04 #04250B
square
#040D25 #25041D #251C04 #04250B
split-complementary
#040D25 #250B04 #1D2504
monochromatic
#030A1C #030A1C #040D25 #0A205C #103493

Accessibility & contrast

On white

19.28
#040D25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D25
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D25#FFFFFF#000000##FFFFFF
##040D251.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021026
Deuteranopia (green-blind)
#000D25
Tritanopia (blue-blind)
#001317
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040d25;
/* rgb */ color: rgb(4, 13, 37);
/* oklch */ color: oklch(16.7% 0.052 263.7);
Tailwind
colors: {
  custom: {
    50: '#484d5f',
    500: '#040d25',
    950: '#000000',
  },
}
SCSS
$custom: #040d25;
$custom-light: #484d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#040d25",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 37
  },
  "hsl": {
    "h": 223.636,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.16689,
    "c": 0.05227,
    "h": 263.7
  },
  "luminance": 0.00447
}

Semantic roles & 50–950 ramp

primary
#040D25
secondary
#68531D
accent
#C131F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040D25

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

Preview Lab → · Contrast checker → · Palette generator →

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