#040B25#040B25

#040B25 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.1% C 0.056 H 266.3°. Best body text is #FFFFFF at 19.45:1 contrast (WCAG AA passes).

Color values

HEX#040B25
RGBrgb(4, 11, 37)
HSLhsl(227, 80%, 8%)
HSVhsv(227, 89%, 15%)
CMYKcmyk(89.2%, 70.3%, 0%, 85.5%)
CIE-LABlab(3.60, 5.11, -17.16)
CIE-LCHlch(3.60, 17.90, 286.57°)
OKLaboklab(16.15% -0.0036 -0.0554)
OKLCHoklch(16.15% 0.056 266.3)
XYZxyz(0.5036, 0.3987, 1.8003)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B25 #251E04
analogous
#041B25 #040B25 #0D0425
triadic
#040B25 #25040B #0B2504
tetradic
#040B25 #25041B #251E04 #04250D
square
#040B25 #25041B #251E04 #04250D
split-complementary
#040B25 #250D04 #1B2504
monochromatic
#03081C #03081C #040B25 #0A1B5C #102C93

Accessibility & contrast

On white

19.45
#040B25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040B25 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B25
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B25#FFFFFF#000000##FFFFFF
##040B251.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F26
Deuteranopia (green-blind)
#000B24
Tritanopia (blue-blind)
#001116
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040b25;
/* rgb */ color: rgb(4, 11, 37);
/* oklch */ color: oklch(16.1% 0.056 266.3);
Tailwind
colors: {
  custom: {
    50: '#484b5f',
    500: '#040b25',
    950: '#000000',
  },
}
SCSS
$custom: #040b25;
$custom-light: #484b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#040b25",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 37
  },
  "hsl": {
    "h": 227.273,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.16145,
    "c": 0.05553,
    "h": 266.3
  },
  "luminance": 0.00399
}

Semantic roles & 50–950 ramp

primary
#040B25
secondary
#68581D
accent
#CD31F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040B25

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

Preview Lab → · Contrast checker → · Palette generator →

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