#040530#040530

#040530 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.9% C 0.084 H 270.4°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#040530
RGBrgb(4, 5, 48)
HSLhsl(239, 85%, 10%)
HSVhsv(239, 92%, 19%)
CMYKcmyk(91.7%, 89.6%, 0%, 81.2%)
CIE-LABlab(3.14, 12.59, -26.24)
CIE-LCHlch(3.14, 29.10, 295.63°)
OKLaboklab(15.94% 0.0006 -0.0838)
OKLCHoklch(15.94% 0.084 270.4)
XYZxyz(0.6377, 0.3477, 2.8292)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040530 #302F04
analogous
#041B30 #040530 #190430
triadic
#040530 #300405 #053004
tetradic
#040530 #30041B #302F04 #043019
square
#040530 #30041B #302F04 #043019
split-complementary
#040530 #301904 #1B3004
monochromatic
#02031C #02031C #040530 #090B68 #0D11A1

Accessibility & contrast

On white

19.63
#040530 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040530
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040530#FFFFFF#000000##FFFFFF
##0405301.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E31
Deuteranopia (green-blind)
#00092F
Tritanopia (blue-blind)
#00111A
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040530;
/* rgb */ color: rgb(4, 5, 48);
/* oklch */ color: oklch(15.9% 0.084 270.4);
Tailwind
colors: {
  custom: {
    50: '#4a4869',
    500: '#040530',
    950: '#000000',
  },
}
SCSS
$custom: #040530;
$custom-light: #4a4869;
$custom-dark: #000000;
JSON
{
  "hex": "#040530",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 48
  },
  "hsl": {
    "h": 238.636,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.15938,
    "c": 0.08381,
    "h": 270.4
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#040530
secondary
#72711D
accent
#F62DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040530

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

Preview Lab → · Contrast checker → · Palette generator →

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