#040F2D#040F2D

#040F2D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.0% C 0.063 H 263.9°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#040F2D
RGBrgb(4, 15, 45)
HSLhsl(224, 84%, 10%)
HSVhsv(224, 91%, 18%)
CMYKcmyk(91.1%, 66.7%, 0%, 82.4%)
CIE-LABlab(5.03, 6.77, -20.99)
CIE-LCHlch(5.03, 22.05, 287.87°)
OKLaboklab(18.02% -0.0067 -0.0628)
OKLCHoklch(18.02% 0.063 263.9)
XYZxyz(0.6944, 0.5568, 2.5530)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F2D #2D2204
analogous
#04242D #040F2D #0D042D
triadic
#040F2D #2D040F #0F2D04
tetradic
#040F2D #2D0424 #2D2204 #042D0D
square
#040F2D #2D0424 #2D2204 #042D0D
split-complementary
#040F2D #2D0D04 #242D04
monochromatic
#02091C #02091C #040F2D #092265 #0E349D

Accessibility & contrast

On white

18.90
#040F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F2D
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F2D#FFFFFF#000000##FFFFFF
##040F2D1.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#00161B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040f2d;
/* rgb */ color: rgb(4, 15, 45);
/* oklch */ color: oklch(18.0% 0.063 263.9);
Tailwind
colors: {
  custom: {
    50: '#4a4d66',
    500: '#040f2d',
    950: '#000000',
  },
}
SCSS
$custom: #040f2d;
$custom-light: #4a4d66;
$custom-dark: #000000;
JSON
{
  "hex": "#040f2d",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 223.902,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18024,
    "c": 0.0632,
    "h": 263.9
  },
  "luminance": 0.00557
}

Semantic roles & 50–950 ramp

primary
#040F2D
secondary
#705A1D
accent
#C32EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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