#040632#040632

#040632 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.085 H 269.7°. Best body text is #FFFFFF at 19.49:1 contrast (WCAG AA passes).

Color values

HEX#040632
RGBrgb(4, 6, 50)
HSLhsl(237, 85%, 11%)
HSVhsv(237, 92%, 20%)
CMYKcmyk(92%, 88%, 0%, 80.4%)
CIE-LABlab(3.49, 13.25, -27.17)
CIE-LCHlch(3.49, 30.23, 296.00°)
OKLaboklab(16.46% -0.0004 -0.0851)
OKLCHoklch(16.46% 0.085 269.7)
XYZxyz(0.6907, 0.3863, 3.0551)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040632 #323004
analogous
#041D32 #040632 #190432
triadic
#040632 #320406 #063204
tetradic
#040632 #32041D #323004 #043219
square
#040632 #32041D #323004 #043219
split-complementary
#040632 #321904 #1D3204
monochromatic
#02031C #02031C #040632 #090D6B #0D14A3

Accessibility & contrast

On white

19.49
#040632 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040632
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040632#FFFFFF#000000##FFFFFF
##0406321.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F33
Deuteranopia (green-blind)
#000A31
Tritanopia (blue-blind)
#00131B
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040632;
/* rgb */ color: rgb(4, 6, 50);
/* oklch */ color: oklch(16.5% 0.085 269.7);
Tailwind
colors: {
  custom: {
    50: '#4b496a',
    500: '#040632',
    950: '#000000',
  },
}
SCSS
$custom: #040632;
$custom-light: #4b496a;
$custom-dark: #000000;
JSON
{
  "hex": "#040632",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 50
  },
  "hsl": {
    "h": 237.391,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16463,
    "c": 0.08515,
    "h": 269.7
  },
  "luminance": 0.00386
}

Semantic roles & 50–950 ramp

primary
#040632
secondary
#74711D
accent
#F22CFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040632

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

Preview Lab → · Contrast checker → · Palette generator →

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