#040733#040733

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

Color values

HEX#040733
RGBrgb(4, 7, 51)
HSLhsl(236, 85%, 11%)
HSVhsv(236, 92%, 20%)
CMYKcmyk(92.2%, 86.3%, 0%, 80%)
CIE-LABlab(3.76, 13.41, -27.47)
CIE-LCHlch(3.76, 30.57, 296.02°)
OKLaboklab(16.83% -0.0012 -0.0851)
OKLCHoklch(16.83% 0.085 269.2)
XYZxyz(0.7234, 0.4167, 3.1736)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040733 #333004
analogous
#041E33 #040733 #180433
triadic
#040733 #330407 #073304
tetradic
#040733 #33041E #333004 #043318
square
#040733 #33041E #333004 #043318
split-complementary
#040733 #331804 #1E3304
monochromatic
#02041C #02041C #040733 #080F6C #0D17A4

Accessibility & contrast

On white

19.38
#040733 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040733
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040733#FFFFFF#000000##FFFFFF
##0407331.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001034
Deuteranopia (green-blind)
#000B32
Tritanopia (blue-blind)
#00141C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040733;
/* rgb */ color: rgb(4, 7, 51);
/* oklch */ color: oklch(16.8% 0.085 269.2);
Tailwind
colors: {
  custom: {
    50: '#4b496b',
    500: '#040733',
    950: '#000000',
  },
}
SCSS
$custom: #040733;
$custom-light: #4b496b;
$custom-dark: #000000;
JSON
{
  "hex": "#040733",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 51
  },
  "hsl": {
    "h": 236.17,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.16834,
    "c": 0.08509,
    "h": 269.2
  },
  "luminance": 0.00417
}

Semantic roles & 50–950 ramp

primary
#040733
secondary
#75701D
accent
#EE2CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #040733

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

Preview Lab → · Contrast checker → · Palette generator →

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