#040E36#040E36

#040E36 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.080 H 266.0°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#040E36
RGBrgb(4, 14, 54)
HSLhsl(228, 86%, 11%)
HSVhsv(228, 93%, 21%)
CMYKcmyk(92.6%, 74.1%, 0%, 78.8%)
CIE-LABlab(5.47, 12.14, -26.93)
CIE-LCHlch(5.47, 29.54, 294.26°)
OKLaboklab(18.75% -0.0055 -0.0796)
OKLCHoklch(18.75% 0.08 266)
XYZxyz(0.8727, 0.6061, 3.5603)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E36 #362C04
analogous
#042736 #040E36 #130436
triadic
#040E36 #36040E #0E3604
tetradic
#040E36 #360427 #362C04 #043613
square
#040E36 #360427 #362C04 #043613
split-complementary
#040E36 #361304 #273604
monochromatic
#02071C #02071C #040E36 #081D6F #0C2CA8

Accessibility & contrast

On white

18.73
#040E36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E36
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E36#FFFFFF#000000##FFFFFF
##040E361.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040e36;
/* rgb */ color: rgb(4, 14, 54);
/* oklch */ color: oklch(18.8% 0.080 266.0);
Tailwind
colors: {
  custom: {
    50: '#4d4c6d',
    500: '#040e36',
    950: '#000000',
  },
}
SCSS
$custom: #040e36;
$custom-light: #4d4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040e36",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 54
  },
  "hsl": {
    "h": 228,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18751,
    "c": 0.07976,
    "h": 266
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#040E36
secondary
#78661E
accent
#D32BFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040E36

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

Preview Lab → · Contrast checker → · Palette generator →

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