#040431#040431

#040431 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.087 H 270.6°. Best body text is #FFFFFF at 19.69:1 contrast (WCAG AA passes).

Color values

HEX#040431
RGBrgb(4, 4, 49)
HSLhsl(240, 85%, 10%)
HSVhsv(240, 92%, 19%)
CMYKcmyk(91.8%, 91.8%, 0%, 80.8%)
CIE-LABlab(3.02, 13.52, -27.18)
CIE-LCHlch(3.02, 30.35, 296.44°)
OKLaboklab(15.82% 0.001 -0.087)
OKLCHoklch(15.82% 0.087 270.6)
XYZxyz(0.6477, 0.3343, 2.9355)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040431 #313104
analogous
#041A31 #040431 #1A0431
triadic
#040431 #310404 #043104
tetradic
#040431 #31041A #313104 #04311A
square
#040431 #31041A #313104 #04311A
split-complementary
#040431 #311A04 #1A3104
monochromatic
#02021C #02021C #040431 #09096A #0D0DA2

Accessibility & contrast

On white

19.69
#040431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040431 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040431
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040431#FFFFFF#000000##FFFFFF
##0404311.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000930
Tritanopia (blue-blind)
#00111A
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040431;
/* rgb */ color: rgb(4, 4, 49);
/* oklch */ color: oklch(15.8% 0.087 270.6);
Tailwind
colors: {
  custom: {
    50: '#4b4869',
    500: '#040431',
    950: '#000000',
  },
}
SCSS
$custom: #040431;
$custom-light: #4b4869;
$custom-dark: #000000;
JSON
{
  "hex": "#040431",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 49
  },
  "hsl": {
    "h": 240,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.15819,
    "c": 0.08706,
    "h": 270.6
  },
  "luminance": 0.00334
}

Semantic roles & 50–950 ramp

primary
#040431
secondary
#73731D
accent
#FB2DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040431

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

Preview Lab → · Contrast checker → · Palette generator →

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