#040B37#040B37

#040B37 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.2% C 0.086 H 267.5°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#040B37
RGBrgb(4, 11, 55)
HSLhsl(232, 86%, 12%)
HSVhsv(232, 93%, 22%)
CMYKcmyk(92.7%, 80%, 0%, 78.4%)
CIE-LABlab(4.89, 14.13, -28.61)
CIE-LCHlch(4.89, 31.91, 296.28°)
OKLaboklab(18.21% -0.0038 -0.0855)
OKLCHoklch(18.21% 0.086 267.5)
XYZxyz(0.8591, 0.5409, 3.6728)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B37 #373004
analogous
#042537 #040B37 #170437
triadic
#040B37 #37040B #0B3704
tetradic
#040B37 #370425 #373004 #043717
square
#040B37 #370425 #373004 #043717
split-complementary
#040B37 #371704 #253704
monochromatic
#02061D #02061D #040B37 #081670 #0C22A9

Accessibility & contrast

On white

18.95
#040B37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040B37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B37
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B37#FFFFFF#000000##FFFFFF
##040B371.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001338
Deuteranopia (green-blind)
#000E36
Tritanopia (blue-blind)
#00171F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040b37;
/* rgb */ color: rgb(4, 11, 55);
/* oklch */ color: oklch(18.2% 0.086 267.5);
Tailwind
colors: {
  custom: {
    50: '#4d4b6e',
    500: '#040b37',
    950: '#000000',
  },
}
SCSS
$custom: #040b37;
$custom-light: #4d4b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#040b37",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 55
  },
  "hsl": {
    "h": 231.765,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18208,
    "c": 0.0856,
    "h": 267.5
  },
  "luminance": 0.00541
}

Semantic roles & 50–950 ramp

primary
#040B37
secondary
#796D1E
accent
#E02BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040B37

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

Preview Lab → · Contrast checker → · Palette generator →

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