#040637#040637

#040637 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.2% C 0.093 H 269.1°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#040637
RGBrgb(4, 6, 55)
HSLhsl(238, 86%, 12%)
HSVhsv(238, 93%, 22%)
CMYKcmyk(92.7%, 89.1%, 0%, 78.4%)
CIE-LABlab(3.90, 16.14, -30.20)
CIE-LCHlch(3.90, 34.25, 298.12°)
OKLaboklab(17.15% -0.0014 -0.0925)
OKLCHoklch(17.15% 0.093 269.1)
XYZxyz(0.8045, 0.4318, 3.6546)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040637 #373504
analogous
#042037 #040637 #1C0437
triadic
#040637 #370406 #063704
tetradic
#040637 #370420 #373504 #04371C
square
#040637 #370420 #373504 #04371C
split-complementary
#040637 #371C04 #203704
monochromatic
#02031D #02031D #040637 #080C70 #0C12A9

Accessibility & contrast

On white

19.33
#040637 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040637
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040637#FFFFFF#000000##FFFFFF
##0406371.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001038
Deuteranopia (green-blind)
#000B36
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040637;
/* rgb */ color: rgb(4, 6, 55);
/* oklch */ color: oklch(17.2% 0.093 269.1);
Tailwind
colors: {
  custom: {
    50: '#4d496e',
    500: '#040637',
    950: '#000000',
  },
}
SCSS
$custom: #040637;
$custom-light: #4d496e;
$custom-dark: #000000;
JSON
{
  "hex": "#040637",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 55
  },
  "hsl": {
    "h": 237.647,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17152,
    "c": 0.09256,
    "h": 269.1
  },
  "luminance": 0.00432
}

Semantic roles & 50–950 ramp

primary
#040637
secondary
#79751E
accent
#F42BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #040637

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

Preview Lab → · Contrast checker → · Palette generator →

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