#040630#040630

#040630 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.2% C 0.082 H 270.0°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#040630
RGBrgb(4, 6, 48)
HSLhsl(237, 85%, 10%)
HSVhsv(237, 92%, 19%)
CMYKcmyk(91.7%, 87.5%, 0%, 81.2%)
CIE-LABlab(3.34, 12.18, -25.92)
CIE-LCHlch(3.34, 28.64, 295.17°)
OKLaboklab(16.19% 0 -0.0821)
OKLCHoklch(16.19% 0.082 270)
XYZxyz(0.6485, 0.3694, 2.8329)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040630 #302E04
analogous
#041C30 #040630 #180430
triadic
#040630 #300406 #063004
tetradic
#040630 #30041C #302E04 #043018
square
#040630 #30041C #302E04 #043018
split-complementary
#040630 #301804 #1C3004
monochromatic
#02041C #02041C #040630 #090D68 #0D14A1

Accessibility & contrast

On white

19.56
#040630 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040630 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040630
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040630#FFFFFF#000000##FFFFFF
##0406301.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040630;
/* rgb */ color: rgb(4, 6, 48);
/* oklch */ color: oklch(16.2% 0.082 270.0);
Tailwind
colors: {
  custom: {
    50: '#4a4969',
    500: '#040630',
    950: '#000000',
  },
}
SCSS
$custom: #040630;
$custom-light: #4a4969;
$custom-dark: #000000;
JSON
{
  "hex": "#040630",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 48
  },
  "hsl": {
    "h": 237.273,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16192,
    "c": 0.08211,
    "h": 270
  },
  "luminance": 0.00369
}

Semantic roles & 50–950 ramp

primary
#040630
secondary
#726F1D
accent
#F22DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040630

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

Preview Lab → · Contrast checker → · Palette generator →

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