#040A29#040A29

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

Color values

HEX#040A29
RGBrgb(4, 10, 41)
HSLhsl(230, 82%, 9%)
HSVhsv(230, 90%, 16%)
CMYKcmyk(90.2%, 75.6%, 0%, 83.9%)
CIE-LABlab(3.64, 7.20, -20.16)
CIE-LCHlch(3.64, 21.41, 289.65°)
OKLaboklab(16.32% -0.0024 -0.0641)
OKLCHoklch(16.32% 0.064 267.8)
XYZxyz(0.5587, 0.4029, 2.1457)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A29 #292304
analogous
#041D29 #040A29 #110429
triadic
#040A29 #29040A #0A2904
tetradic
#040A29 #29041D #292304 #042911
square
#040A29 #29041D #292304 #042911
split-complementary
#040A29 #291104 #1D2904
monochromatic
#03071C #03071C #040A29 #091861 #0F2599

Accessibility & contrast

On white

19.43
#040A29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A29
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A29#FFFFFF#000000##FFFFFF
##040A291.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040a29;
/* rgb */ color: rgb(4, 10, 41);
/* oklch */ color: oklch(16.3% 0.064 267.8);
Tailwind
colors: {
  custom: {
    50: '#494b63',
    500: '#040a29',
    950: '#000000',
  },
}
SCSS
$custom: #040a29;
$custom-light: #494b63;
$custom-dark: #000000;
JSON
{
  "hex": "#040a29",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 41
  },
  "hsl": {
    "h": 230.27,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16321,
    "c": 0.06417,
    "h": 267.8
  },
  "luminance": 0.00403
}

Semantic roles & 50–950 ramp

primary
#040A29
secondary
#6C5F1D
accent
#D82FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040A29

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

Preview Lab → · Contrast checker → · Palette generator →

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