#040525#040525

#040525 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.5% C 0.067 H 272.4°. Best body text is #FFFFFF at 19.93:1 contrast (WCAG AA passes).

Color values

HEX#040525
RGBrgb(4, 5, 37)
HSLhsl(238, 80%, 8%)
HSVhsv(238, 89%, 15%)
CMYKcmyk(89.2%, 86.5%, 0%, 85.5%)
CIE-LABlab(2.42, 7.52, -18.99)
CIE-LCHlch(2.42, 20.42, 291.61°)
OKLaboklab(14.46% 0.0028 -0.0664)
OKLCHoklch(14.46% 0.067 272.4)
XYZxyz(0.4382, 0.2679, 1.7785)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040525 #252404
analogous
#041525 #040525 #130425
triadic
#040525 #250405 #052504
tetradic
#040525 #250415 #252404 #042513
square
#040525 #250415 #252404 #042513
split-complementary
#040525 #251304 #152504
monochromatic
#03041C #03041C #040525 #0A0C5C #101493

Accessibility & contrast

On white

19.93
#040525 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040525
19.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040525#FFFFFF#000000##FFFFFF
##0405251.0019.931.0519.93
#FFFFFF19.931.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A26
Deuteranopia (green-blind)
#000724
Tritanopia (blue-blind)
#000D13
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040525;
/* rgb */ color: rgb(4, 5, 37);
/* oklch */ color: oklch(14.5% 0.067 272.4);
Tailwind
colors: {
  custom: {
    50: '#48495f',
    500: '#040525',
    950: '#000000',
  },
}
SCSS
$custom: #040525;
$custom-light: #48495f;
$custom-dark: #000000;
JSON
{
  "hex": "#040525",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 37
  },
  "hsl": {
    "h": 238.182,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14459,
    "c": 0.0665,
    "h": 272.4
  },
  "luminance": 0.00268
}

Semantic roles & 50–950 ramp

primary
#040525
secondary
#68661D
accent
#F131F7
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #040525

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

Preview Lab → · Contrast checker → · Palette generator →

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