#040A26#040A26

#040A26 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.0% C 0.059 H 267.6°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#040A26
RGBrgb(4, 10, 38)
HSLhsl(229, 81%, 8%)
HSVhsv(229, 89%, 15%)
CMYKcmyk(89.5%, 73.7%, 0%, 85.1%)
CIE-LABlab(3.46, 5.92, -18.15)
CIE-LCHlch(3.46, 19.09, 288.06°)
OKLaboklab(15.99% -0.0025 -0.0589)
OKLCHoklch(15.99% 0.059 267.6)
XYZxyz(0.5083, 0.3828, 1.8804)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A26 #262004
analogous
#041B26 #040A26 #0F0426
triadic
#040A26 #26040A #0A2604
tetradic
#040A26 #26041B #262004 #04260F
square
#040A26 #26041B #262004 #04260F
split-complementary
#040A26 #260F04 #1B2604
monochromatic
#03071C #03071C #040A26 #0A195D #102795

Accessibility & contrast

On white

19.51
#040A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A26
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A26#FFFFFF#000000##FFFFFF
##040A261.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E27
Deuteranopia (green-blind)
#000B25
Tritanopia (blue-blind)
#001116
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a26;
/* rgb */ color: rgb(4, 10, 38);
/* oklch */ color: oklch(16.0% 0.059 267.6);
Tailwind
colors: {
  custom: {
    50: '#484b60',
    500: '#040a26',
    950: '#000000',
  },
}
SCSS
$custom: #040a26;
$custom-light: #484b60;
$custom-dark: #000000;
JSON
{
  "hex": "#040a26",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 38
  },
  "hsl": {
    "h": 229.412,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.1599,
    "c": 0.05893,
    "h": 267.6
  },
  "luminance": 0.00383
}

Semantic roles & 50–950 ramp

primary
#040A26
secondary
#695B1D
accent
#D430F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040A26

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

Preview Lab → · Contrast checker → · Palette generator →

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