#040636#040636

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

Color values

HEX#040636
RGBrgb(4, 6, 54)
HSLhsl(238, 86%, 11%)
HSVhsv(238, 93%, 21%)
CMYKcmyk(92.6%, 88.9%, 0%, 78.8%)
CIE-LABlab(3.81, 15.54, -29.61)
CIE-LCHlch(3.81, 33.44, 297.70°)
OKLaboklab(17.01% -0.0012 -0.0911)
OKLCHoklch(17.01% 0.091 269.3)
XYZxyz(0.7808, 0.4223, 3.5297)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040636 #363404
analogous
#041F36 #040636 #1B0436
triadic
#040636 #360406 #063604
tetradic
#040636 #36041F #363404 #04361B
square
#040636 #36041F #363404 #04361B
split-complementary
#040636 #361B04 #1F3604
monochromatic
#02031C #02031C #040636 #080C6F #0C13A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##040636#FFFFFF#000000##FFFFFF
##0406361.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)
#001037
Deuteranopia (green-blind)
#000B35
Tritanopia (blue-blind)
#00141D
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040636;
/* rgb */ color: rgb(4, 6, 54);
/* oklch */ color: oklch(17.0% 0.091 269.3);
Tailwind
colors: {
  custom: {
    50: '#4d496d',
    500: '#040636',
    950: '#000000',
  },
}
SCSS
$custom: #040636;
$custom-light: #4d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#040636",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 237.6,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17013,
    "c": 0.09111,
    "h": 269.3
  },
  "luminance": 0.00422
}

Semantic roles & 50–950 ramp

primary
#040636
secondary
#78741E
accent
#F42BFC
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040636

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

Preview Lab → · Contrast checker → · Palette generator →

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