#040E33#040E33

#040E33 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.4% C 0.075 H 265.8°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#040E33
RGBrgb(4, 14, 51)
HSLhsl(227, 85%, 11%)
HSVhsv(227, 92%, 20%)
CMYKcmyk(92.2%, 72.5%, 0%, 80%)
CIE-LABlab(5.23, 10.42, -25.12)
CIE-LCHlch(5.23, 27.20, 292.52°)
OKLaboklab(18.41% -0.0055 -0.0747)
OKLCHoklch(18.41% 0.075 265.8)
XYZxyz(0.8044, 0.5788, 3.2006)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E33 #332904
analogous
#042533 #040E33 #110433
triadic
#040E33 #33040E #0E3304
tetradic
#040E33 #330425 #332904 #043311
square
#040E33 #330425 #332904 #043311
split-complementary
#040E33 #331104 #253304
monochromatic
#02081C #02081C #040E33 #081E6C #0D2DA4

Accessibility & contrast

On white

18.82
#040E33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040E33
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E33#FFFFFF#000000##FFFFFF
##040E331.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001434
Deuteranopia (green-blind)
#000F32
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040e33;
/* rgb */ color: rgb(4, 14, 51);
/* oklch */ color: oklch(18.4% 0.075 265.8);
Tailwind
colors: {
  custom: {
    50: '#4c4d6b',
    500: '#040e33',
    950: '#000000',
  },
}
SCSS
$custom: #040e33;
$custom-light: #4c4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040e33",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 51
  },
  "hsl": {
    "h": 227.234,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18412,
    "c": 0.07487,
    "h": 265.8
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#040E33
secondary
#75631D
accent
#D02CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040E33

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

Preview Lab → · Contrast checker → · Palette generator →

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