Color Reference · Cosmic Dusk
#040A7F
oklch(28% 0.18 265)
HEX
#040A7F
OKLCH
oklch(28% 0.18 265)
RGB
rgb(4, 10, 127)
HSL
hsl(237deg 94% 26%)
Relative Luminance
Y = 0.0178
Using #040A7F as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 15.5:1
Sample text on Slate (#0F172A)
Contrast ratio 1.15:1
Using #040A7F as Button / Surface Fill
White ink (#FFFFFF) on #040A7F
Contrast ratio 15.5:1
Dark ink (#0F172A) on #040A7F
Contrast ratio 1.15:1
Recommended accessible ink on #040A7F: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.