#040532#040532

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

Color values

HEX#040532
RGBrgb(4, 5, 50)
HSLhsl(239, 85%, 11%)
HSVhsv(239, 92%, 20%)
CMYKcmyk(92%, 90%, 0%, 80.4%)
CIE-LABlab(3.29, 13.66, -27.49)
CIE-LCHlch(3.29, 30.69, 296.42°)
OKLaboklab(16.22% 0.0002 -0.0868)
OKLCHoklch(16.22% 0.087 270.1)
XYZxyz(0.6799, 0.3646, 3.0515)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040532 #323104
analogous
#041C32 #040532 #1A0432
triadic
#040532 #320405 #053204
tetradic
#040532 #32041C #323104 #04321A
square
#040532 #32041C #323104 #04321A
split-complementary
#040532 #321A04 #1C3204
monochromatic
#02031C #02031C #040532 #090B6B #0D10A3

Accessibility & contrast

On white

19.57
#040532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040532
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040532#FFFFFF#000000##FFFFFF
##0405321.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E33
Deuteranopia (green-blind)
#000931
Tritanopia (blue-blind)
#00121B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040532;
/* rgb */ color: rgb(4, 5, 50);
/* oklch */ color: oklch(16.2% 0.087 270.1);
Tailwind
colors: {
  custom: {
    50: '#4b486a',
    500: '#040532',
    950: '#000000',
  },
}
SCSS
$custom: #040532;
$custom-light: #4b486a;
$custom-dark: #000000;
JSON
{
  "hex": "#040532",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 238.696,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16217,
    "c": 0.0868,
    "h": 270.1
  },
  "luminance": 0.00365
}

Semantic roles & 50–950 ramp

primary
#040532
secondary
#74721D
accent
#F72CFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040532

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

Preview Lab → · Contrast checker → · Palette generator →

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