Skip to content

#3040E8 Color

#3040E8 is rgb(48, 64, 232) in RGB, hsl(235, 80%, 55%) in HSL, and about cmyk(79%, 72%, 0%, 9%) in CMYK. It has no registered color name of its own — the closest is Palatinate Blue (#273BE2), below the threshold most people can see at ΔE 2.04. White text is the more readable choice on this background.

#3040E8
HEX#3040E8
RGBrgb(48, 64, 232)
HSLhsl(235, 80%, 55%)
HSVhsv(235, 79%, 91%)
CMYKcmyk(79%, 72%, 0%, 9%)
OKLCHoklch(48.8% 0.247 269.2)
LABlab(36.41% 41.84 -87.63)
LCHlch(36.41% 97.10 295.52)

What #3040E8 Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #3040E8, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every blue in the library.

#3040E8 Channel Values

How #3040E8 breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 48 · G 64 · B 2328-bit channels as sent to the display
HSLH 235° · S 80% · L 55%Easiest model for building lighter and darker variants
HSVH 235° · S 79% · V 91%Matches the picker in most design tools
CMYKC 79% · M 72% · Y 0% · K 9%Approximate ink mix; confirm with an ICC profile before printing
Luminance6.94:1 vs white · 3.02:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #3040E8 background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text6.94:1AA normal AA large AAA normal
Fails AABlack text3.02:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #3040E8 in the contrast checker.

Colors That Go With #3040E8

Pairings derived from color-wheel relationships. The complementary color sits opposite #3040E8; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #3040E8

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #3040E8.

How #3040E8 Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#3040E8
Protanopia#3E3EE8
Protanomaly#393FE8
Deuteranopia#3B3BE8
Deuteranomaly#373DE8
Tritanopia#006B6B
Tritanomaly#005DAC
Achromatopsia#5A5A5A

Test a full palette in the color blindness simulator.

Using #3040E8 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-3040e8: #3040E8;
CSS backgroundbackground-color: #3040E8;
Tailwind configcolors: { 'color-3040e8': '#3040E8' }
SwiftUIColor(red: 0.188, green: 0.251, blue: 0.910)
Android XML<color name="color_3040e8">#3040E8</color>
SVG fillfill="#3040E8"

More Blue Colors

#3040E8 sits in the blue family. These are its neighbours across that family's full range, each with its own breakdown.

#3040E8 Frequently Asked Questions

What color is #3040E8?

#3040E8 is a mid-tone blue — rgb(48, 64, 232) in RGB and hsl(235, 80%, 55%) in HSL. It carries no registered color name of its own; the closest named color is Palatinate Blue (#273BE2), which is below the threshold most people can see at a CIE76 distance of 2.04.

What is the RGB value of #3040E8?

#3040E8 is rgb(48, 64, 232) — red 48, green 64, and blue 232 on the 0-255 scale.

What is the CMYK value of #3040E8?

#3040E8 converts to approximately cmyk(79%, 72%, 0%, 9%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #3040E8 be black or white?

White text is the more readable choice. #3040E8 scores 6.94:1 against white and 3.02:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #3040E8 as a CSS color keyword?

No. #3040E8 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is mediumblue (#0000CD) at a CIE76 distance of 22.43, which is visibly different.

Open #3040E8 in a Tool

Keep exploring: every blue in the color library, the guide to shades of blue, or the full color library.