#040B3F#040B3F

#040B3F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.2% C 0.098 H 267.3°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#040B3F
RGBrgb(4, 11, 63)
HSLhsl(233, 88%, 13%)
HSVhsv(233, 94%, 25%)
CMYKcmyk(93.7%, 82.5%, 0%, 75.3%)
CIE-LABlab(5.64, 18.68, -33.18)
CIE-LCHlch(5.64, 38.08, 299.38°)
OKLaboklab(19.22% -0.0047 -0.0976)
OKLCHoklch(19.22% 0.098 267.3)
XYZxyz(1.0666, 0.6239, 4.7659)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B3F #3F3804
analogous
#04283F #040B3F #1A043F
triadic
#040B3F #3F040B #0B3F04
tetradic
#040B3F #3F0428 #3F3804 #043F1A
square
#040B3F #3F0428 #3F3804 #043F1A
split-complementary
#040B3F #3F1A04 #283F04
monochromatic
#02051D #02051D #040B3F #081579 #0B1FB2

Accessibility & contrast

On white

18.67
#040B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B3F
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B3F#FFFFFF#000000##FFFFFF
##040B3F1.0018.671.1218.67
#FFFFFF18.671.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#000F3E
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040b3f;
/* rgb */ color: rgb(4, 11, 63);
/* oklch */ color: oklch(19.2% 0.098 267.3);
Tailwind
colors: {
  custom: {
    50: '#514a75',
    500: '#040b3f',
    950: '#000000',
  },
}
SCSS
$custom: #040b3f;
$custom-light: #514a75;
$custom-dark: #000000;
JSON
{
  "hex": "#040b3f",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 232.881,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19222,
    "c": 0.09771,
    "h": 267.3
  },
  "luminance": 0.00624
}

Semantic roles & 50–950 ramp

primary
#040B3F
secondary
#80751E
accent
#E52AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #040B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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