#040635#040635

#040635 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.090 H 269.4°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#040635
RGBrgb(4, 6, 53)
HSLhsl(238, 86%, 11%)
HSVhsv(238, 92%, 21%)
CMYKcmyk(92.5%, 88.7%, 0%, 79.2%)
CIE-LABlab(3.73, 14.95, -29.01)
CIE-LCHlch(3.73, 32.63, 297.27°)
OKLaboklab(16.88% -0.001 -0.0896)
OKLCHoklch(16.88% 0.09 269.4)
XYZxyz(0.7576, 0.4130, 3.4073)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040635 #353304
analogous
#041E35 #040635 #1A0435
triadic
#040635 #350406 #063504
tetradic
#040635 #35041E #353304 #04351A
square
#040635 #35041E #353304 #04351A
split-complementary
#040635 #351A04 #1E3504
monochromatic
#02031C #02031C #040635 #080C6E #0D13A7

Accessibility & contrast

On white

19.40
#040635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040635
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040635#FFFFFF#000000##FFFFFF
##0406351.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001036
Deuteranopia (green-blind)
#000B34
Tritanopia (blue-blind)
#00141D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040635;
/* rgb */ color: rgb(4, 6, 53);
/* oklch */ color: oklch(16.9% 0.090 269.4);
Tailwind
colors: {
  custom: {
    50: '#4c496d',
    500: '#040635',
    950: '#000000',
  },
}
SCSS
$custom: #040635;
$custom-light: #4c496d;
$custom-dark: #000000;
JSON
{
  "hex": "#040635",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 237.551,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.16875,
    "c": 0.08964,
    "h": 269.4
  },
  "luminance": 0.00413
}

Semantic roles & 50–950 ramp

primary
#040635
secondary
#77741E
accent
#F42CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #040635

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

Preview Lab → · Contrast checker → · Palette generator →

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