#040625#040625

#040625 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.8% C 0.064 H 271.5°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#040625
RGBrgb(4, 6, 37)
HSLhsl(236, 80%, 8%)
HSVhsv(236, 89%, 15%)
CMYKcmyk(89.2%, 83.8%, 0%, 85.5%)
CIE-LABlab(2.62, 7.12, -18.68)
CIE-LCHlch(2.62, 19.99, 290.85°)
OKLaboklab(14.77% 0.0017 -0.0644)
OKLCHoklch(14.77% 0.064 271.5)
XYZxyz(0.4490, 0.2896, 1.7821)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040625 #252304
analogous
#041625 #040625 #120425
triadic
#040625 #250406 #062504
tetradic
#040625 #250416 #252304 #042512
square
#040625 #250416 #252304 #042512
split-complementary
#040625 #251204 #162504
monochromatic
#03041C #03041C #040625 #0A0F5C #101893

Accessibility & contrast

On white

19.85
#040625 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040625 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040625
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040625#FFFFFF#000000##FFFFFF
##0406251.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B26
Deuteranopia (green-blind)
#000824
Tritanopia (blue-blind)
#000E14
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040625;
/* rgb */ color: rgb(4, 6, 37);
/* oklch */ color: oklch(14.8% 0.064 271.5);
Tailwind
colors: {
  custom: {
    50: '#48495f',
    500: '#040625',
    950: '#000000',
  },
}
SCSS
$custom: #040625;
$custom-light: #48495f;
$custom-dark: #000000;
JSON
{
  "hex": "#040625",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 37
  },
  "hsl": {
    "h": 236.364,
    "s": 80.488,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14766,
    "c": 0.06442,
    "h": 271.5
  },
  "luminance": 0.0029
}

Semantic roles & 50–950 ramp

primary
#040625
secondary
#68631D
accent
#EB31F7
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #040625

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

Preview Lab → · Contrast checker → · Palette generator →

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