#040931#040931

#040931 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.0% C 0.079 H 268.5°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#040931
RGBrgb(4, 9, 49)
HSLhsl(233, 85%, 10%)
HSVhsv(233, 92%, 19%)
CMYKcmyk(91.8%, 81.6%, 0%, 80.8%)
CIE-LABlab(4.00, 11.51, -25.61)
CIE-LCHlch(4.00, 28.08, 294.20°)
OKLaboklab(17.04% -0.0021 -0.0789)
OKLCHoklch(17.04% 0.079 268.5)
XYZxyz(0.7019, 0.4429, 2.9536)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040931 #312C04
analogous
#041F31 #040931 #150431
triadic
#040931 #310409 #093104
tetradic
#040931 #31041F #312C04 #043115
square
#040931 #31041F #312C04 #043115
split-complementary
#040931 #311504 #1F3104
monochromatic
#02051C #02051C #040931 #09136A #0D1EA2

Accessibility & contrast

On white

19.29
#040931 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040931 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040931
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040931#FFFFFF#000000##FFFFFF
##0409311.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#000C30
Tritanopia (blue-blind)
#00141B
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040931;
/* rgb */ color: rgb(4, 9, 49);
/* oklch */ color: oklch(17.0% 0.079 268.5);
Tailwind
colors: {
  custom: {
    50: '#4b4a69',
    500: '#040931',
    950: '#000000',
  },
}
SCSS
$custom: #040931;
$custom-light: #4b4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#040931",
  "rgb": {
    "r": 4,
    "g": 9,
    "b": 49
  },
  "hsl": {
    "h": 233.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17035,
    "c": 0.07895,
    "h": 268.5
  },
  "luminance": 0.00443
}

Semantic roles & 50–950 ramp

primary
#040931
secondary
#736A1D
accent
#E42DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040931

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

Preview Lab → · Contrast checker → · Palette generator →

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