#040025#040025

#040025 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.7% C 0.079 H 276.2°. Best body text is #FFFFFF at 20.35:1 contrast (WCAG AA passes).

Color values

HEX#040025
RGBrgb(4, 0, 37)
HSLhsl(246, 100%, 7%)
HSVhsv(246, 100%, 15%)
CMYKcmyk(89.2%, 100%, 0%, 85.5%)
CIE-LABlab(1.44, 9.52, -20.51)
CIE-LCHlch(1.44, 22.61, 294.91°)
OKLaboklab(12.68% 0.0085 -0.0785)
OKLCHoklch(12.68% 0.079 276.2)
XYZxyz(0.3839, 0.1593, 1.7604)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040025 #212500
analogous
#000F25 #040025 #170025
triadic
#040025 #250400 #002504
tetradic
#040025 #25000F #212500 #002517
square
#040025 #25000F #212500 #002517
split-complementary
#040025 #251700 #0F2500
monochromatic
#03001F #03001F #040025 #0B0062 #11009F

Accessibility & contrast

On white

20.35
#040025 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040025 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040025
20.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040025#FFFFFF#000000##FFFFFF
##0400251.0020.351.0320.35
#FFFFFF20.351.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000726
Deuteranopia (green-blind)
#000424
Tritanopia (blue-blind)
#000911
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040025;
/* rgb */ color: rgb(4, 0, 37);
/* oklch */ color: oklch(12.7% 0.079 276.2);
Tailwind
colors: {
  custom: {
    50: '#48475f',
    500: '#040025',
    950: '#000000',
  },
}
SCSS
$custom: #040025;
$custom-light: #48475f;
$custom-dark: #000000;
JSON
{
  "hex": "#040025",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 37
  },
  "hsl": {
    "h": 246.486,
    "s": 100,
    "l": 7.255
  },
  "oklch": {
    "l": 0.12681,
    "c": 0.07895,
    "h": 276.2
  },
  "luminance": 0.00159
}

Semantic roles & 50–950 ramp

primary
#040025
secondary
#646D13
accent
#FF29E8
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#010004
muted
#777779

Preview Lab

Preview with #040025

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

Preview Lab → · Contrast checker → · Palette generator →

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