#040534#040534

#040534 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.5% C 0.090 H 269.8°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#040534
RGBrgb(4, 5, 52)
HSLhsl(239, 86%, 11%)
HSVhsv(239, 92%, 20%)
CMYKcmyk(92.3%, 90.4%, 0%, 79.6%)
CIE-LABlab(3.45, 14.78, -28.72)
CIE-LCHlch(3.45, 32.29, 297.23°)
OKLaboklab(16.5% -0.0003 -0.0897)
OKLCHoklch(16.5% 0.09 269.8)
XYZxyz(0.7240, 0.3822, 3.2838)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040534 #343304
analogous
#041D34 #040534 #1B0434
triadic
#040534 #340405 #053404
tetradic
#040534 #34041D #343304 #04341B
square
#040534 #34041D #343304 #04341B
split-complementary
#040534 #341B04 #1D3404
monochromatic
#02031C #02031C #040534 #080A6D #0D10A6

Accessibility & contrast

On white

19.51
#040534 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040534
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040534#FFFFFF#000000##FFFFFF
##0405341.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F35
Deuteranopia (green-blind)
#000A33
Tritanopia (blue-blind)
#00131C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040534;
/* rgb */ color: rgb(4, 5, 52);
/* oklch */ color: oklch(16.5% 0.090 269.8);
Tailwind
colors: {
  custom: {
    50: '#4c486c',
    500: '#040534',
    950: '#000000',
  },
}
SCSS
$custom: #040534;
$custom-light: #4c486c;
$custom-dark: #000000;
JSON
{
  "hex": "#040534",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 52
  },
  "hsl": {
    "h": 238.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.16499,
    "c": 0.08974,
    "h": 269.8
  },
  "luminance": 0.00382
}

Semantic roles & 50–950 ramp

primary
#040534
secondary
#76741E
accent
#F82CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #040534

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

Preview Lab → · Contrast checker → · Palette generator →

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