#040526#040526

#040526 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.6% C 0.068 H 272.2°. Best body text is #FFFFFF at 19.91:1 contrast (WCAG AA passes).

Color values

HEX#040526
RGBrgb(4, 5, 38)
HSLhsl(238, 81%, 8%)
HSVhsv(238, 89%, 15%)
CMYKcmyk(89.5%, 86.8%, 0%, 85.1%)
CIE-LABlab(2.48, 7.93, -19.67)
CIE-LCHlch(2.48, 21.21, 291.94°)
OKLaboklab(14.59% 0.0026 -0.0681)
OKLCHoklch(14.59% 0.068 272.2)
XYZxyz(0.4541, 0.2742, 1.8624)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040526 #262504
analogous
#041626 #040526 #140426
triadic
#040526 #260405 #052604
tetradic
#040526 #260416 #262504 #042614
square
#040526 #260416 #262504 #042614
split-complementary
#040526 #261404 #162604
monochromatic
#03041C #03041C #040526 #0A0C5D #101495

Accessibility & contrast

On white

19.91
#040526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040526 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040526
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040526#FFFFFF#000000##FFFFFF
##0405261.0019.911.0519.91
#FFFFFF19.911.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B27
Deuteranopia (green-blind)
#000825
Tritanopia (blue-blind)
#000D14
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040526;
/* rgb */ color: rgb(4, 5, 38);
/* oklch */ color: oklch(14.6% 0.068 272.2);
Tailwind
colors: {
  custom: {
    50: '#484960',
    500: '#040526',
    950: '#000000',
  },
}
SCSS
$custom: #040526;
$custom-light: #484960;
$custom-dark: #000000;
JSON
{
  "hex": "#040526",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 38
  },
  "hsl": {
    "h": 238.235,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.14588,
    "c": 0.06814,
    "h": 272.2
  },
  "luminance": 0.00274
}

Semantic roles & 50–950 ramp

primary
#040526
secondary
#69671D
accent
#F130F7
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010005
muted
#777779

Preview Lab

Preview with #040526

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

Preview Lab → · Contrast checker → · Palette generator →

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