#040B33#040B33

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

Color values

HEX#040B33
RGBrgb(4, 11, 51)
HSLhsl(231, 85%, 11%)
HSVhsv(231, 92%, 20%)
CMYKcmyk(92.2%, 78.4%, 0%, 80%)
CIE-LABlab(4.55, 11.80, -26.21)
CIE-LCHlch(4.55, 28.74, 294.23°)
OKLaboklab(17.72% -0.0035 -0.0792)
OKLCHoklch(17.72% 0.079 267.5)
XYZxyz(0.7671, 0.5041, 3.1882)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B33 #332C04
analogous
#042233 #040B33 #140433
triadic
#040B33 #33040B #0B3304
tetradic
#040B33 #330422 #332C04 #043314
square
#040B33 #330422 #332C04 #043314
split-complementary
#040B33 #331404 #223304
monochromatic
#02061C #02061C #040B33 #08176C #0D23A4

Accessibility & contrast

On white

19.08
#040B33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040B33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B33
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B33#FFFFFF#000000##FFFFFF
##040B331.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001234
Deuteranopia (green-blind)
#000D32
Tritanopia (blue-blind)
#00161D
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040b33;
/* rgb */ color: rgb(4, 11, 51);
/* oklch */ color: oklch(17.7% 0.079 267.5);
Tailwind
colors: {
  custom: {
    50: '#4c4b6b',
    500: '#040b33',
    950: '#000000',
  },
}
SCSS
$custom: #040b33;
$custom-light: #4c4b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040b33",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 51
  },
  "hsl": {
    "h": 231.064,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.1772,
    "c": 0.07929,
    "h": 267.5
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#040B33
secondary
#75681D
accent
#DD2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B33

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

Preview Lab → · Contrast checker → · Palette generator →

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