#040831#040831

#040831 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.080 H 269.0°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#040831
RGBrgb(4, 8, 49)
HSLhsl(235, 85%, 10%)
HSVhsv(235, 92%, 19%)
CMYKcmyk(91.8%, 83.7%, 0%, 80.8%)
CIE-LABlab(3.80, 11.91, -25.92)
CIE-LCHlch(3.80, 28.53, 294.68°)
OKLaboklab(16.81% -0.0015 -0.0804)
OKLCHoklch(16.81% 0.08 269)
XYZxyz(0.6911, 0.4211, 2.9500)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040831 #312D04
analogous
#041E31 #040831 #160431
triadic
#040831 #310408 #083104
tetradic
#040831 #31041E #312D04 #043116
square
#040831 #31041E #312D04 #043116
split-complementary
#040831 #311604 #1E3104
monochromatic
#02051C #02051C #040831 #09116A #0D1AA2

Accessibility & contrast

On white

19.37
#040831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040831
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040831#FFFFFF#000000##FFFFFF
##0408311.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040831;
/* rgb */ color: rgb(4, 8, 49);
/* oklch */ color: oklch(16.8% 0.080 269.0);
Tailwind
colors: {
  custom: {
    50: '#4b4a69',
    500: '#040831',
    950: '#000000',
  },
}
SCSS
$custom: #040831;
$custom-light: #4b4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#040831",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 234.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16805,
    "c": 0.08045,
    "h": 269
  },
  "luminance": 0.00421
}

Semantic roles & 50–950 ramp

primary
#040831
secondary
#736C1D
accent
#E92DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040831

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

Preview Lab → · Contrast checker → · Palette generator →

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