#040730#040730

#040730 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.080 H 269.5°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#040730
RGBrgb(4, 7, 48)
HSLhsl(236, 85%, 10%)
HSVhsv(236, 92%, 19%)
CMYKcmyk(91.7%, 85.4%, 0%, 81.2%)
CIE-LABlab(3.53, 11.78, -25.61)
CIE-LCHlch(3.53, 28.19, 294.71°)
OKLaboklab(16.44% -0.0007 -0.0805)
OKLCHoklch(16.44% 0.08 269.5)
XYZxyz(0.6594, 0.3911, 2.8365)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040730 #302D04
analogous
#041D30 #040730 #170430
triadic
#040730 #300407 #073004
tetradic
#040730 #30041D #302D04 #043017
square
#040730 #30041D #302D04 #043017
split-complementary
#040730 #301704 #1D3004
monochromatic
#02041C #02041C #040730 #090F68 #0D17A1

Accessibility & contrast

On white

19.48
#040730 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040730
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040730#FFFFFF#000000##FFFFFF
##0407301.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F31
Deuteranopia (green-blind)
#000A2F
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040730;
/* rgb */ color: rgb(4, 7, 48);
/* oklch */ color: oklch(16.4% 0.080 269.5);
Tailwind
colors: {
  custom: {
    50: '#4a4969',
    500: '#040730',
    950: '#000000',
  },
}
SCSS
$custom: #040730;
$custom-light: #4a4969;
$custom-dark: #000000;
JSON
{
  "hex": "#040730",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 48
  },
  "hsl": {
    "h": 235.909,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16438,
    "c": 0.08046,
    "h": 269.5
  },
  "luminance": 0.00391
}

Semantic roles & 50–950 ramp

primary
#040730
secondary
#726D1D
accent
#ED2DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040730

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

Preview Lab → · Contrast checker → · Palette generator →

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