#040A25#040A25

#040A25 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.9% C 0.057 H 267.5°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#040A25
RGBrgb(4, 10, 37)
HSLhsl(229, 80%, 8%)
HSVhsv(229, 89%, 15%)
CMYKcmyk(89.2%, 73%, 0%, 85.5%)
CIE-LABlab(3.40, 5.52, -17.47)
CIE-LCHlch(3.40, 18.32, 287.52°)
OKLaboklab(15.88% -0.0025 -0.0571)
OKLCHoklch(15.88% 0.057 267.5)
XYZxyz(0.4924, 0.3764, 1.7966)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A25 #251F04
analogous
#041A25 #040A25 #0E0425
triadic
#040A25 #25040A #0A2504
tetradic
#040A25 #25041A #251F04 #04250E
square
#040A25 #25041A #251F04 #04250E
split-complementary
#040A25 #250E04 #1A2504
monochromatic
#03071C #03071C #040A25 #0A195C #102893

Accessibility & contrast

On white

19.53
#040A25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A25
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A25#FFFFFF#000000##FFFFFF
##040A251.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E26
Deuteranopia (green-blind)
#000B24
Tritanopia (blue-blind)
#001115
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a25;
/* rgb */ color: rgb(4, 10, 37);
/* oklch */ color: oklch(15.9% 0.057 267.5);
Tailwind
colors: {
  custom: {
    50: '#484b5f',
    500: '#040a25',
    950: '#000000',
  },
}
SCSS
$custom: #040a25;
$custom-light: #484b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#040a25",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 37
  },
  "hsl": {
    "h": 229.091,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.15883,
    "c": 0.05716,
    "h": 267.5
  },
  "luminance": 0.00376
}

Semantic roles & 50–950 ramp

primary
#040A25
secondary
#685A1D
accent
#D331F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040A25

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

Preview Lab → · Contrast checker → · Palette generator →

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