#040B31#040B31

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

Color values

HEX#040B31
RGBrgb(4, 11, 49)
HSLhsl(231, 85%, 10%)
HSVhsv(231, 92%, 19%)
CMYKcmyk(91.8%, 77.6%, 0%, 80.8%)
CIE-LABlab(4.40, 10.70, -24.98)
CIE-LCHlch(4.40, 27.17, 293.19°)
OKLaboklab(17.48% -0.0034 -0.076)
OKLCHoklch(17.48% 0.076 267.5)
XYZxyz(0.7239, 0.4868, 2.9609)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B31 #312A04
analogous
#042131 #040B31 #130431
triadic
#040B31 #31040B #0B3104
tetradic
#040B31 #310421 #312A04 #043113
square
#040B31 #310421 #312A04 #043113
split-complementary
#040B31 #311304 #213104
monochromatic
#02061C #02061C #040B31 #09186A #0D24A2

Accessibility & contrast

On white

19.14
#040B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B31
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B31#FFFFFF#000000##FFFFFF
##040B311.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#000D30
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040b31;
/* rgb */ color: rgb(4, 11, 49);
/* oklch */ color: oklch(17.5% 0.076 267.5);
Tailwind
colors: {
  custom: {
    50: '#4b4b69',
    500: '#040b31',
    950: '#000000',
  },
}
SCSS
$custom: #040b31;
$custom-light: #4b4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#040b31",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 230.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17481,
    "c": 0.07606,
    "h": 267.5
  },
  "luminance": 0.00487
}

Semantic roles & 50–950 ramp

primary
#040B31
secondary
#73661D
accent
#DB2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B31

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

Preview Lab → · Contrast checker → · Palette generator →

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