#040835#040835

#040835 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.087 H 268.7°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#040835
RGBrgb(4, 8, 53)
HSLhsl(235, 86%, 11%)
HSVhsv(235, 92%, 21%)
CMYKcmyk(92.5%, 84.9%, 0%, 79.2%)
CIE-LABlab(4.12, 14.15, -28.38)
CIE-LCHlch(4.12, 31.71, 296.51°)
OKLaboklab(17.32% -0.002 -0.0866)
OKLCHoklch(17.32% 0.087 268.7)
XYZxyz(0.7793, 0.4564, 3.4145)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040835 #353104
analogous
#042035 #040835 #180435
triadic
#040835 #350408 #083504
tetradic
#040835 #350420 #353104 #043518
square
#040835 #350420 #353104 #043518
split-complementary
#040835 #351804 #203504
monochromatic
#02041C #02041C #040835 #08116E #0D19A7

Accessibility & contrast

On white

19.24
#040835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040835
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040835#FFFFFF#000000##FFFFFF
##0408351.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001136
Deuteranopia (green-blind)
#000C34
Tritanopia (blue-blind)
#00151D
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040835;
/* rgb */ color: rgb(4, 8, 53);
/* oklch */ color: oklch(17.3% 0.087 268.7);
Tailwind
colors: {
  custom: {
    50: '#4c4a6d',
    500: '#040835',
    950: '#000000',
  },
}
SCSS
$custom: #040835;
$custom-light: #4c4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040835",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 235.102,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17324,
    "c": 0.08664,
    "h": 268.7
  },
  "luminance": 0.00457
}

Semantic roles & 50–950 ramp

primary
#040835
secondary
#77701E
accent
#EB2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040835

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

Preview Lab → · Contrast checker → · Palette generator →

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