#040E37#040E37

#040E37 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.081 H 266.1°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#040E37
RGBrgb(4, 14, 55)
HSLhsl(228, 86%, 12%)
HSVhsv(228, 93%, 22%)
CMYKcmyk(92.7%, 74.5%, 0%, 78.4%)
CIE-LABlab(5.56, 12.71, -27.52)
CIE-LCHlch(5.56, 30.31, 294.79°)
OKLaboklab(18.87% -0.0055 -0.0812)
OKLCHoklch(18.87% 0.081 266.1)
XYZxyz(0.8965, 0.6156, 3.6853)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E37 #372D04
analogous
#042837 #040E37 #140437
triadic
#040E37 #37040E #0E3704
tetradic
#040E37 #370428 #372D04 #043714
square
#040E37 #370428 #372D04 #043714
split-complementary
#040E37 #371404 #283704
monochromatic
#02071D #02071D #040E37 #081D70 #0C2BA9

Accessibility & contrast

On white

18.70
#040E37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040E37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E37
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E37#FFFFFF#000000##FFFFFF
##040E371.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#001036
Tritanopia (blue-blind)
#001920
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040e37;
/* rgb */ color: rgb(4, 14, 55);
/* oklch */ color: oklch(18.9% 0.081 266.1);
Tailwind
colors: {
  custom: {
    50: '#4e4c6e',
    500: '#040e37',
    950: '#000000',
  },
}
SCSS
$custom: #040e37;
$custom-light: #4e4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#040e37",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 55
  },
  "hsl": {
    "h": 228.235,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18866,
    "c": 0.08137,
    "h": 266.1
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#040E37
secondary
#79671E
accent
#D42BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040E37

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

Preview Lab → · Contrast checker → · Palette generator →

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