#040633#040633

#040633 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.087 H 269.6°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#040633
RGBrgb(4, 6, 51)
HSLhsl(237, 85%, 11%)
HSVhsv(237, 92%, 20%)
CMYKcmyk(92.2%, 88.2%, 0%, 80%)
CIE-LABlab(3.57, 13.81, -27.79)
CIE-LCHlch(3.57, 31.03, 296.42°)
OKLaboklab(16.6% -0.0006 -0.0866)
OKLCHoklch(16.6% 0.087 269.6)
XYZxyz(0.7125, 0.3950, 3.1700)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040633 #333104
analogous
#041D33 #040633 #190433
triadic
#040633 #330406 #063304
tetradic
#040633 #33041D #333104 #043319
square
#040633 #33041D #333104 #043319
split-complementary
#040633 #331904 #1D3304
monochromatic
#02031C #02031C #040633 #080D6C #0D13A4

Accessibility & contrast

On white

19.46
#040633 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040633
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040633#FFFFFF#000000##FFFFFF
##0406331.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F34
Deuteranopia (green-blind)
#000A32
Tritanopia (blue-blind)
#00131C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040633;
/* rgb */ color: rgb(4, 6, 51);
/* oklch */ color: oklch(16.6% 0.087 269.6);
Tailwind
colors: {
  custom: {
    50: '#4b496b',
    500: '#040633',
    950: '#000000',
  },
}
SCSS
$custom: #040633;
$custom-light: #4b496b;
$custom-dark: #000000;
JSON
{
  "hex": "#040633",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 51
  },
  "hsl": {
    "h": 237.447,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.166,
    "c": 0.08665,
    "h": 269.6
  },
  "luminance": 0.00395
}

Semantic roles & 50–950 ramp

primary
#040633
secondary
#75721D
accent
#F32CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #040633

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

Preview Lab → · Contrast checker → · Palette generator →

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