What is hex #2018FF color?
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.
From a technical standpoint, this color is composed of 13% red, 9% green and 100% blue, resulting in rgb(32, 24, 255) and hsl(242, 100%, 55%).
For print media and manufacturing layout, the CMYK equivalent is (87%, 91%, 0%, 0%).
In the HSV/HSB scale, #2018FF features a hue of 242°, 91% saturation, and 100% brightness.
Hex #2018FF Color Codes & Conversions
| Closest Named Color | Blue Bonnet (#1C1CF0) |
| Hex Code | #2018FF |
| Hex8 (RGBA Hex) | #2018FFFF |
| RGB (CSS) | rgb(32, 24, 255) |
| RGBA (CSS) | rgba(32, 24, 255, 1) |
| HSL (CSS) | hsl(242, 100%, 55%) |
| HSLA (CSS) | hsla(242, 100%, 55%, 1) |
| HSV / HSB | (242°, 91%, 100%) |
| CMYK Values | (87%, 91%, 0%, 0%) |
| OKLCH (Modern CSS) | oklch(46.8% 0.302 267.1) |
| CIE-LAB (D65) | 34.35, 75.15, -104.41 |
| CIE XYZ | 18.97, 8.18, 95.17 |
| Decimal / Binary |
2103551
00100000 00011000 11111111 |
Closest Standards & Equivalents
| Closest Web Safe | #3300FF |
| Inverse Color | #DFE700 |
| Complementary Color | #F7FF18 |
| Closest Pantone® | Pantone 2736 C |
| Closest RAL | RAL 5002 [Ultramarine blue] |
#2018FF Grayscale Equivalents
| Average | #686868 |
| Lightness (Desaturation) | #8C8C8C |
| Weighted (BT601) | #353535 |
| Luma (BT709) | #2A2A2A |
WCAG 2.1 Color Contrast & Accessibility
Check how #2018FF complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #2018FF
Sample preview of readable typography on top of #2018FF.
Black Text on #2018FF
Sample preview of readable typography on top of #2018FF.
HTML / CSS Live Previews & Snippets for #2018FF
Preview #2018FF in real UI elements and copy ready-to-use CSS rules.
background-color: #2018FF;
color: #2018FF;
border: 2px solid #2018FF;
:root {
--color-primary: #2018FF;
--color-primary-rgb: 32, 24, 255;
--color-complementary: #F7FF18;
}
.btn-accent {
background-color: #2018FF;
color: #ffffff;
}
Hex #2018FF Color Palettes
Complementary Palette
The complementary color of #2018FF is #F7FF18. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #2018FF pairs with #1883FF and #9318FF, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #2018FF pairs with #83FF18 and #FF9318, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #2018FF uses #18FF20 and #FF2018, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #2018FF combines #FF2018, #F7FF18 and #18F7FF around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #2018FF pairs with #FF1883, #F7FF18 and #18FF93 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #2018FF
Tints
Tints are created by mixing #2018FF with white, producing lighter variations.
Tones
Tones are created by mixing #2018FF with gray, softening saturation.
Shades
Shades result from mixing #2018FF with black, creating deeper variations.
Hex #2018FF in Programming & CSS Frameworks
Copy the exact syntax for #2018FF in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #2018FF |
| Tailwind CSS | bg-[#2018FF] text-[#2018FF] |
| Java (AWT) | new Color(32,24,255); |
| Python | Color("#2018FF") |
| .NET (C#) | Color.FromArgb(255, 32,24,255); |
| Swift / iOS | UIColor(red: 0.13, green: 0.09, blue: 1, alpha: 1) |
| Kotlin / Android | Color.rgb(32, 24, 255) |