#040B46#040B46

#040B46 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.108 H 267.0°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#040B46
RGBrgb(4, 11, 70)
HSLhsl(234, 89%, 15%)
HSVhsv(234, 94%, 27%)
CMYKcmyk(94.3%, 84.3%, 0%, 72.5%)
CIE-LABlab(6.39, 22.30, -36.92)
CIE-LCHlch(6.39, 43.13, 301.13°)
OKLaboklab(20.14% -0.0056 -0.1077)
OKLCHoklch(20.14% 0.108 267)
XYZxyz(1.2748, 0.7072, 5.8625)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B46 #463F04
analogous
#042C46 #040B46 #1E0446
triadic
#040B46 #46040B #0B4604
tetradic
#040B46 #46042C #463F04 #04461E
square
#040B46 #46042C #463F04 #04461E
split-complementary
#040B46 #461E04 #2C4604
monochromatic
#02051D #02051D #040B46 #071480 #0B1DBA

Accessibility & contrast

On white

18.40
#040B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#040B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B46
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B46#FFFFFF#000000##FFFFFF
##040B461.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001145
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #040b46;
/* rgb */ color: rgb(4, 11, 70);
/* oklch */ color: oklch(20.1% 0.108 267.0);
Tailwind
colors: {
  custom: {
    50: '#544a7a',
    500: '#040b46',
    950: '#000000',
  },
}
SCSS
$custom: #040b46;
$custom-light: #544a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#040b46",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 233.636,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20141,
    "c": 0.10781,
    "h": 267
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#040B46
secondary
#877C1F
accent
#E829FF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #040B46

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

Preview Lab → · Contrast checker → · Palette generator →

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