#040E28#040E28

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

Color values

HEX#040E28
RGBrgb(4, 14, 40)
HSLhsl(223, 82%, 9%)
HSVhsv(223, 90%, 16%)
CMYKcmyk(90%, 65%, 0%, 84.3%)
CIE-LABlab(4.45, 4.97, -18.12)
CIE-LCHlch(4.45, 18.79, 285.35°)
OKLaboklab(17.26% -0.0063 -0.0557)
OKLCHoklch(17.26% 0.056 263.5)
XYZxyz(0.5900, 0.4930, 2.0711)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E28 #281E04
analogous
#042028 #040E28 #0C0428
triadic
#040E28 #28040E #0E2804
tetradic
#040E28 #280420 #281E04 #04280C
square
#040E28 #280420 #281E04 #04280C
split-complementary
#040E28 #280C04 #202804
monochromatic
#030A1C #030A1C #040E28 #0A2160 #0F3597

Accessibility & contrast

On white

19.12
#040E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E28
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E28#FFFFFF#000000##FFFFFF
##040E281.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021129
Deuteranopia (green-blind)
#000E27
Tritanopia (blue-blind)
#001419
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040e28;
/* rgb */ color: rgb(4, 14, 40);
/* oklch */ color: oklch(17.3% 0.056 263.5);
Tailwind
colors: {
  custom: {
    50: '#494d62',
    500: '#040e28',
    950: '#000000',
  },
}
SCSS
$custom: #040e28;
$custom-light: #494d62;
$custom-dark: #000000;
JSON
{
  "hex": "#040e28",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 40
  },
  "hsl": {
    "h": 223.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17257,
    "c": 0.05603,
    "h": 263.5
  },
  "luminance": 0.00493
}

Semantic roles & 50–950 ramp

primary
#040E28
secondary
#6B551D
accent
#C030F8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040E28

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

Preview Lab → · Contrast checker → · Palette generator →

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