#040E27#040E27

#040E27 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.2% C 0.054 H 263.1°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#040E27
RGBrgb(4, 14, 39)
HSLhsl(223, 81%, 8%)
HSVhsv(223, 90%, 15%)
CMYKcmyk(89.7%, 64.1%, 0%, 84.7%)
CIE-LABlab(4.39, 4.55, -17.46)
CIE-LCHlch(4.39, 18.04, 284.60°)
OKLaboklab(17.16% -0.0065 -0.0539)
OKLCHoklch(17.16% 0.054 263.1)
XYZxyz(0.5732, 0.4863, 1.9827)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E27 #271D04
analogous
#041F27 #040E27 #0B0427
triadic
#040E27 #27040E #0E2704
tetradic
#040E27 #27041F #271D04 #04270B
square
#040E27 #27041F #271D04 #04270B
split-complementary
#040E27 #270B04 #1F2704
monochromatic
#030A1C #030A1C #040E27 #0A225F #0F3696

Accessibility & contrast

On white

19.14
#040E27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E27
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E27#FFFFFF#000000##FFFFFF
##040E271.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021128
Deuteranopia (green-blind)
#000E26
Tritanopia (blue-blind)
#001418
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040e27;
/* rgb */ color: rgb(4, 14, 39);
/* oklch */ color: oklch(17.2% 0.054 263.1);
Tailwind
colors: {
  custom: {
    50: '#494d61',
    500: '#040e27',
    950: '#000000',
  },
}
SCSS
$custom: #040e27;
$custom-light: #494d61;
$custom-dark: #000000;
JSON
{
  "hex": "#040e27",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 39
  },
  "hsl": {
    "h": 222.857,
    "s": 81.395,
    "l": 8.431
  },
  "oklch": {
    "l": 0.17159,
    "c": 0.05425,
    "h": 263.1
  },
  "luminance": 0.00486
}

Semantic roles & 50–950 ramp

primary
#040E27
secondary
#6A541D
accent
#BF30F8
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040E27

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

Preview Lab → · Contrast checker → · Palette generator →

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