Color #040CFA Color / Colour Code #040CFA
This page shows the hex color code for color #040cfa (#040CFA). The colour is a blue tone with 97% saturation and 50% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.
Color Conversions
Accessibility Contrast
WCAG contrast ratios for #040CFA against common backgrounds.
Complementary Colors
#040CFA paired with its color wheel opposite for maximum contrast.
Analogous Colors
Hues at 208, 238, and 268 degrees for harmonious combinations.
Triadic Palette
Three colors at 238, 358, and 118 degrees.
Color Palettes Using #040CFA
Five shades at lightness levels 15% through 85% while keeping hue at 238 and saturation at 97%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.
Adjacent hues from 238 to 283 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.
Combines the base color at hue 238 with its complement at 58 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.
Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.
Shades & Tints of #040CFA
Lightness variations at hue 238 and 97% saturation.
CSS Gradients with #040CFA
Design Use Cases for #040CFA
High-Impact Accent
With 97% saturation, #040CFA is highly vivid. Reserve this for elements that need maximum attention: primary action buttons, notification badges, error states, or promotional banners. Use sparingly alongside neutral tones to avoid visual fatigue.
Soft Accent & Highlight
With 50% lightness, #040CFA has a softer, more approachable quality. It works well for hover states, subtle highlights, progress indicators, and secondary UI elements. This lightness range is particularly effective for tag backgrounds and status indicators.
Trust & Professional Identity
#040CFA sits in the blue range (hue 238). Blue is the world's most popular color for corporate identities because it conveys trust, stability, and competence. Use it for navigation bars, link text, form focus states, and any element where user confidence matters. Financial, healthcare, and technology brands rely heavily on this hue range.
Gradient Pairing
Create a gradient from #040CFA (hue 238) to its complement at hue 58. For a subtler effect, try pairing with an analogous color at hue 268. Use CSS: background: linear-gradient(135deg, #040cfa, #fbf304);
CSS Code for #040CFA
Similar Colors
Colors visually similar to #040CFA based on RGB, lightness, and hue variations.
Use This Color in Design Tools
Apply #040CFA across image editing and color design tools.
About Color #040CFA (#040CFA)
#040CFA is a blue color (colour) with RGB channel values of 4 red, 12 green, and 250 blue. The blue channel is dominant by a ratio of 62.5:1 over the weakest channel. In HSL terms, the hue sits at 238 degrees with 97% saturation and 50% lightness, placing it in the cool range of the colour spectrum.
The perceived brightness of #040CFA is 37/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 98% cyan, 95% magenta, 0% yellow, and 2% key (black).
The WCAG contrast ratio of #040CFA against white is 8.61:1 and against black is 2.44:1. This exceeds the AAA requirement (7:1) for normal text on white, making it excellent for body text and small UI labels on light backgrounds.
The complementary colour #FBF304 creates maximum visual tension when paired with #040CFA. For more harmonious color combinations, use the analogous colours #0488FB and #7704FB, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.
How to Explore Color #040CFA
- Enter your color value in HEX format.
- The tool converts it to RGB, HSL, CMYK format in real time.
- Copy the converted value to your clipboard.
What is HEX to RGB, HSL, CMYK color conversion
Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).
Related Tools & Colors
Frequently Asked Questions
- What color / colour is #040CFA?
- #040CFA is Color #040CFA, a blue color (colour) with RGB(4, 12, 250), HSL(238, 97%, 50%), and CMYK(98%, 95%, 0%, 2%). Its perceived brightness is 37/255.
- Is #040CFA accessible for text?
- Against white, #040CFA has a contrast ratio of 8.61:1 (passes AA for normal text). Against black, it has 2.44:1 (fails AA). Use the contrast checker tool for custom background pairings.
- What colours pair well with #040CFA?
- The complementary colour is #FBF304 (hue 58). For subtle color combinations, use analogous colours #0488FB and #7704FB. The triadic palette adds #FB040C and #0CFB04 for vibrant variety.
- How do I use #040CFA in CSS?
- Use any format: color: #040cfa; or rgb(4, 12, 250); or hsl(238, 97%, 50%). For CSS custom properties: --color-primary: 238 97% 50%; then use it as hsl(var(--color-primary)).
- Is this color / colour explorer free?
- Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.