#040A28#040A28

#040A28 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.2% C 0.062 H 267.8°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#040A28
RGBrgb(4, 10, 40)
HSLhsl(230, 82%, 9%)
HSVhsv(230, 90%, 16%)
CMYKcmyk(90%, 75%, 0%, 84.3%)
CIE-LABlab(3.58, 6.76, -19.50)
CIE-LCHlch(3.58, 20.64, 289.13°)
OKLaboklab(16.21% -0.0024 -0.0624)
OKLCHoklch(16.21% 0.062 267.8)
XYZxyz(0.5415, 0.3960, 2.0550)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A28 #282204
analogous
#041C28 #040A28 #100428
triadic
#040A28 #28040A #0A2804
tetradic
#040A28 #28041C #282204 #042810
square
#040A28 #28041C #282204 #042810
split-complementary
#040A28 #281004 #1C2804
monochromatic
#03071C #03071C #040A28 #0A1860 #0F2697

Accessibility & contrast

On white

19.46
#040A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A28
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A28#FFFFFF#000000##FFFFFF
##040A281.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040a28;
/* rgb */ color: rgb(4, 10, 40);
/* oklch */ color: oklch(16.2% 0.062 267.8);
Tailwind
colors: {
  custom: {
    50: '#494b62',
    500: '#040a28',
    950: '#000000',
  },
}
SCSS
$custom: #040a28;
$custom-light: #494b62;
$custom-dark: #000000;
JSON
{
  "hex": "#040a28",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 40
  },
  "hsl": {
    "h": 230,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.1621,
    "c": 0.06244,
    "h": 267.8
  },
  "luminance": 0.00396
}

Semantic roles & 50–950 ramp

primary
#040A28
secondary
#6B5E1D
accent
#D730F8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040A28

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

Preview Lab → · Contrast checker → · Palette generator →

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