#040D28#040D28

#040D28 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.0% C 0.058 H 264.7°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#040D28
RGBrgb(4, 13, 40)
HSLhsl(225, 82%, 9%)
HSVhsv(225, 90%, 16%)
CMYKcmyk(90%, 67.5%, 0%, 84.3%)
CIE-LABlab(4.22, 5.46, -18.49)
CIE-LCHlch(4.22, 19.28, 286.44°)
OKLaboklab(16.99% -0.0053 -0.0574)
OKLCHoklch(16.99% 0.058 264.7)
XYZxyz(0.5769, 0.4668, 2.0668)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D28 #281F04
analogous
#041F28 #040D28 #0D0428
triadic
#040D28 #28040D #0D2804
tetradic
#040D28 #28041F #281F04 #04280D
square
#040D28 #28041F #281F04 #04280D
split-complementary
#040D28 #280D04 #1F2804
monochromatic
#03091C #03091C #040D28 #0A1F60 #0F3197

Accessibility & contrast

On white

19.21
#040D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D28
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D28#FFFFFF#000000##FFFFFF
##040D281.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001129
Deuteranopia (green-blind)
#000D27
Tritanopia (blue-blind)
#001418
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040d28;
/* rgb */ color: rgb(4, 13, 40);
/* oklch */ color: oklch(17.0% 0.058 264.7);
Tailwind
colors: {
  custom: {
    50: '#494c62',
    500: '#040d28',
    950: '#000000',
  },
}
SCSS
$custom: #040d28;
$custom-light: #494c62;
$custom-dark: #000000;
JSON
{
  "hex": "#040d28",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 40
  },
  "hsl": {
    "h": 225,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16986,
    "c": 0.05764,
    "h": 264.7
  },
  "luminance": 0.00467
}

Semantic roles & 50–950 ramp

primary
#040D28
secondary
#6B571D
accent
#C630F8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040D28

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

Preview Lab → · Contrast checker → · Palette generator →

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