#040B28#040B28

#040B28 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.061 H 266.8°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#040B28
RGBrgb(4, 11, 40)
HSLhsl(228, 82%, 9%)
HSVhsv(228, 90%, 16%)
CMYKcmyk(90%, 72.5%, 0%, 84.3%)
CIE-LABlab(3.78, 6.35, -19.18)
CIE-LCHlch(3.78, 20.20, 288.32°)
OKLaboklab(16.46% -0.0033 -0.0608)
OKLCHoklch(16.46% 0.061 266.8)
XYZxyz(0.5526, 0.4183, 2.0587)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B28 #282104
analogous
#041D28 #040B28 #0F0428
triadic
#040B28 #28040B #0B2804
tetradic
#040B28 #28041D #282104 #04280F
square
#040B28 #28041D #282104 #04280F
split-complementary
#040B28 #280F04 #1D2804
monochromatic
#03081C #03081C #040B28 #0A1A60 #0F2A97

Accessibility & contrast

On white

19.38
#040B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B28
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B28#FFFFFF#000000##FFFFFF
##040B281.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F29
Deuteranopia (green-blind)
#000C27
Tritanopia (blue-blind)
#001217
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040b28;
/* rgb */ color: rgb(4, 11, 40);
/* oklch */ color: oklch(16.5% 0.061 266.8);
Tailwind
colors: {
  custom: {
    50: '#494b62',
    500: '#040b28',
    950: '#000000',
  },
}
SCSS
$custom: #040b28;
$custom-light: #494b62;
$custom-dark: #000000;
JSON
{
  "hex": "#040b28",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 40
  },
  "hsl": {
    "h": 228.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16462,
    "c": 0.06085,
    "h": 266.8
  },
  "luminance": 0.00418
}

Semantic roles & 50–950 ramp

primary
#040B28
secondary
#6B5C1D
accent
#D130F8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040B28

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

Preview Lab → · Contrast checker → · Palette generator →

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