#040F25#040F25

#040F25 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.3% C 0.049 H 260.6°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#040F25
RGBrgb(4, 15, 37)
HSLhsl(220, 80%, 8%)
HSVhsv(220, 89%, 15%)
CMYKcmyk(89.2%, 59.5%, 0%, 85.5%)
CIE-LABlab(4.53, 3.22, -15.72)
CIE-LCHlch(4.53, 16.05, 281.56°)
OKLaboklab(17.25% -0.008 -0.0484)
OKLCHoklch(17.25% 0.049 260.6)
XYZxyz(0.5547, 0.5010, 1.8174)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F25 #251A04
analogous
#041F25 #040F25 #090425
triadic
#040F25 #25040F #0F2504
tetradic
#040F25 #25041F #251A04 #042509
square
#040F25 #25041F #251A04 #042509
split-complementary
#040F25 #250904 #1F2504
monochromatic
#030B1C #030B1C #040F25 #0A255C #103C93

Accessibility & contrast

On white

19.09
#040F25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040F25 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F25
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F25#FFFFFF#000000##FFFFFF
##040F251.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051126
Deuteranopia (green-blind)
#010E25
Tritanopia (blue-blind)
#001418
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040f25;
/* rgb */ color: rgb(4, 15, 37);
/* oklch */ color: oklch(17.3% 0.049 260.6);
Tailwind
colors: {
  custom: {
    50: '#484e5f',
    500: '#040f25',
    950: '#000000',
  },
}
SCSS
$custom: #040f25;
$custom-light: #484e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#040f25",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 37
  },
  "hsl": {
    "h": 220,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17254,
    "c": 0.04907,
    "h": 260.6
  },
  "luminance": 0.00501
}

Semantic roles & 50–950 ramp

primary
#040F25
secondary
#684F1D
accent
#B531F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040F25

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

Preview Lab → · Contrast checker → · Palette generator →

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