#040E35#040E35

#040E35 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.078 H 265.9°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#040E35
RGBrgb(4, 14, 53)
HSLhsl(228, 86%, 11%)
HSVhsv(228, 92%, 21%)
CMYKcmyk(92.5%, 73.6%, 0%, 79.2%)
CIE-LABlab(5.39, 11.56, -26.33)
CIE-LCHlch(5.39, 28.76, 293.70°)
OKLaboklab(18.64% -0.0055 -0.0779)
OKLCHoklch(18.64% 0.078 265.9)
XYZxyz(0.8495, 0.5968, 3.4379)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E35 #352B04
analogous
#042635 #040E35 #120435
triadic
#040E35 #35040E #0E3504
tetradic
#040E35 #350426 #352B04 #043512
square
#040E35 #350426 #352B04 #043512
split-complementary
#040E35 #351204 #263504
monochromatic
#02081C #02081C #040E35 #081D6E #0D2CA7

Accessibility & contrast

On white

18.76
#040E35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E35
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E35#FFFFFF#000000##FFFFFF
##040E351.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001436
Deuteranopia (green-blind)
#001034
Tritanopia (blue-blind)
#00181F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040e35;
/* rgb */ color: rgb(4, 14, 53);
/* oklch */ color: oklch(18.6% 0.078 265.9);
Tailwind
colors: {
  custom: {
    50: '#4d4d6d',
    500: '#040e35',
    950: '#000000',
  },
}
SCSS
$custom: #040e35;
$custom-light: #4d4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040e35",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 53
  },
  "hsl": {
    "h": 227.755,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18637,
    "c": 0.07815,
    "h": 265.9
  },
  "luminance": 0.00597
}

Semantic roles & 50–950 ramp

primary
#040E35
secondary
#77651E
accent
#D22CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040E35

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

Preview Lab → · Contrast checker → · Palette generator →

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