#040937#040937

#040937 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.088 H 268.2°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#040937
RGBrgb(4, 9, 55)
HSLhsl(234, 86%, 12%)
HSVhsv(234, 93%, 22%)
CMYKcmyk(92.7%, 83.6%, 0%, 78.4%)
CIE-LABlab(4.49, 14.94, -29.25)
CIE-LCHlch(4.49, 32.85, 297.06°)
OKLaboklab(17.8% -0.0028 -0.0882)
OKLCHoklch(17.8% 0.088 268.2)
XYZxyz(0.8371, 0.4969, 3.6655)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040937 #373204
analogous
#042337 #040937 #190437
triadic
#040937 #370409 #093704
tetradic
#040937 #370423 #373204 #043719
square
#040937 #370423 #373204 #043719
split-complementary
#040937 #371904 #233704
monochromatic
#02051D #02051D #040937 #081270 #0C1CA9

Accessibility & contrast

On white

19.10
#040937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040937
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040937#FFFFFF#000000##FFFFFF
##0409371.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001238
Deuteranopia (green-blind)
#000D36
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040937;
/* rgb */ color: rgb(4, 9, 55);
/* oklch */ color: oklch(17.8% 0.088 268.2);
Tailwind
colors: {
  custom: {
    50: '#4d4a6e',
    500: '#040937',
    950: '#000000',
  },
}
SCSS
$custom: #040937;
$custom-light: #4d4a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#040937",
  "rgb": {
    "r": 4,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 234.118,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17797,
    "c": 0.08828,
    "h": 268.2
  },
  "luminance": 0.00497
}

Semantic roles & 50–950 ramp

primary
#040937
secondary
#79701E
accent
#E82BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040937

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

Preview Lab → · Contrast checker → · Palette generator →

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