#040631#040631

#040631 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.3% C 0.084 H 269.9°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#040631
RGBrgb(4, 6, 49)
HSLhsl(237, 85%, 10%)
HSVhsv(237, 92%, 19%)
CMYKcmyk(91.8%, 87.8%, 0%, 80.8%)
CIE-LABlab(3.41, 12.72, -26.55)
CIE-LCHlch(3.41, 29.44, 295.59°)
OKLaboklab(16.33% -0.0002 -0.0836)
OKLCHoklch(16.33% 0.084 269.9)
XYZxyz(0.6694, 0.3777, 2.9428)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040631 #312F04
analogous
#041C31 #040631 #180431
triadic
#040631 #310406 #063104
tetradic
#040631 #31041C #312F04 #043118
square
#040631 #31041C #312F04 #043118
split-complementary
#040631 #311804 #1C3104
monochromatic
#02031C #02031C #040631 #090D6A #0D14A2

Accessibility & contrast

On white

19.52
#040631 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040631 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040631
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040631#FFFFFF#000000##FFFFFF
##0406311.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000A30
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040631;
/* rgb */ color: rgb(4, 6, 49);
/* oklch */ color: oklch(16.3% 0.084 269.9);
Tailwind
colors: {
  custom: {
    50: '#4b4969',
    500: '#040631',
    950: '#000000',
  },
}
SCSS
$custom: #040631;
$custom-light: #4b4969;
$custom-dark: #000000;
JSON
{
  "hex": "#040631",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 49
  },
  "hsl": {
    "h": 237.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16327,
    "c": 0.08363,
    "h": 269.9
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#040631
secondary
#73701D
accent
#F22DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040631

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

Preview Lab → · Contrast checker → · Palette generator →

#040631 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva