#040531#040531

#040531 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.1% C 0.085 H 270.3°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#040531
RGBrgb(4, 5, 49)
HSLhsl(239, 85%, 10%)
HSVhsv(239, 92%, 19%)
CMYKcmyk(91.8%, 89.8%, 0%, 80.8%)
CIE-LABlab(3.22, 13.11, -26.86)
CIE-LCHlch(3.22, 29.89, 296.02°)
OKLaboklab(16.08% 0.0004 -0.0853)
OKLCHoklch(16.08% 0.085 270.3)
XYZxyz(0.6585, 0.3560, 2.9391)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040531 #313004
analogous
#041B31 #040531 #190431
triadic
#040531 #310405 #053104
tetradic
#040531 #31041B #313004 #043119
square
#040531 #31041B #313004 #043119
split-complementary
#040531 #311904 #1B3104
monochromatic
#02031C #02031C #040531 #090B6A #0D11A2

Accessibility & contrast

On white

19.60
#040531 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040531
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040531#FFFFFF#000000##FFFFFF
##0405311.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040531;
/* rgb */ color: rgb(4, 5, 49);
/* oklch */ color: oklch(16.1% 0.085 270.3);
Tailwind
colors: {
  custom: {
    50: '#4b4869',
    500: '#040531',
    950: '#000000',
  },
}
SCSS
$custom: #040531;
$custom-light: #4b4869;
$custom-dark: #000000;
JSON
{
  "hex": "#040531",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 49
  },
  "hsl": {
    "h": 238.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.16077,
    "c": 0.08531,
    "h": 270.3
  },
  "luminance": 0.00356
}

Semantic roles & 50–950 ramp

primary
#040531
secondary
#73721D
accent
#F72DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040531

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

Preview Lab → · Contrast checker → · Palette generator →

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