#040125#040125

#040125 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.1% C 0.076 H 275.5°. Best body text is #FFFFFF at 20.27:1 contrast (WCAG AA passes).

Color values

HEX#040125
RGBrgb(4, 1, 37)
HSLhsl(245, 95%, 7%)
HSVhsv(245, 97%, 15%)
CMYKcmyk(89.2%, 97.3%, 0%, 85.5%)
CIE-LABlab(1.64, 9.12, -20.20)
CIE-LCHlch(1.64, 22.16, 294.29°)
OKLaboklab(13.08% 0.0074 -0.0758)
OKLCHoklch(13.08% 0.076 275.5)
XYZxyz(0.3947, 0.1811, 1.7640)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040125 #222501
analogous
#011025 #040125 #160125
triadic
#040125 #250401 #012504
tetradic
#040125 #250110 #222501 #012516
square
#040125 #250110 #222501 #012516
split-complementary
#040125 #251601 #102501
monochromatic
#03011E #03011E #040125 #0A0361 #11049C

Accessibility & contrast

On white

20.27
#040125 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040125 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040125
20.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040125#FFFFFF#000000##FFFFFF
##0401251.0020.271.0420.27
#FFFFFF20.271.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000726
Deuteranopia (green-blind)
#000524
Tritanopia (blue-blind)
#000A12
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040125;
/* rgb */ color: rgb(4, 1, 37);
/* oklch */ color: oklch(13.1% 0.076 275.5);
Tailwind
colors: {
  custom: {
    50: '#48475f',
    500: '#040125',
    950: '#000000',
  },
}
SCSS
$custom: #040125;
$custom-light: #48475f;
$custom-dark: #000000;
JSON
{
  "hex": "#040125",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 37
  },
  "hsl": {
    "h": 245,
    "s": 94.737,
    "l": 7.451
  },
  "oklch": {
    "l": 0.13076,
    "c": 0.07614,
    "h": 275.5
  },
  "luminance": 0.00181
}

Semantic roles & 50–950 ramp

primary
#040125
secondary
#656C16
accent
#FF29ED
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#010004
muted
#777779

Preview Lab

Preview with #040125

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

Preview Lab → · Contrast checker → · Palette generator →

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