#040A2D#040A2D

#040A2D is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.071 H 268.0°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#040A2D
RGBrgb(4, 10, 45)
HSLhsl(231, 84%, 10%)
HSVhsv(231, 91%, 18%)
CMYKcmyk(91.1%, 77.8%, 0%, 82.4%)
CIE-LABlab(3.90, 9.06, -22.77)
CIE-LCHlch(3.90, 24.51, 291.70°)
OKLaboklab(16.78% -0.0025 -0.0709)
OKLCHoklch(16.78% 0.071 268)
XYZxyz(0.6321, 0.4323, 2.5322)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A2D #2D2704
analogous
#041F2D #040A2D #13042D
triadic
#040A2D #2D040A #0A2D04
tetradic
#040A2D #2D041F #2D2704 #042D13
square
#040A2D #2D041F #2D2704 #042D13
split-complementary
#040A2D #2D1304 #1F2D04
monochromatic
#02061C #02061C #040A2D #091665 #0E239D

Accessibility & contrast

On white

19.33
#040A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A2D
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A2D#FFFFFF#000000##FFFFFF
##040A2D1.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#00131A
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040a2d;
/* rgb */ color: rgb(4, 10, 45);
/* oklch */ color: oklch(16.8% 0.071 268.0);
Tailwind
colors: {
  custom: {
    50: '#4a4b66',
    500: '#040a2d',
    950: '#000000',
  },
}
SCSS
$custom: #040a2d;
$custom-light: #4a4b66;
$custom-dark: #000000;
JSON
{
  "hex": "#040a2d",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 45
  },
  "hsl": {
    "h": 231.22,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16781,
    "c": 0.07094,
    "h": 268
  },
  "luminance": 0.00432
}

Semantic roles & 50–950 ramp

primary
#040A2D
secondary
#70641D
accent
#DC2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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