#0c6cf2
a balanced, electric blue · cool · closest name: Royal Blue
At a glance
Every number on this page in one read: what #0c6cf2 is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #0c6cf2 |
| RGB | rgb(12, 108, 242) |
| HSL | hsl(215, 91%, 50%) |
| CMYK | cmyk(95%, 55%, 0%, 5%) |
| LAB | lab(48.5 26.7 -73.8) |
| LCH | lch(48.5 78.4 289.9) |
| OKLCH | oklch(0.565 0.217 259.5) |
| Decimal | 814322 |
| Display P3 | color(display-p3 0.047 0.424 0.949) |
Copy-ready code
/* CSS */
color: #0c6cf2;
background-color: #0c6cf2;
/* Tailwind (arbitrary) */
class="text-[#0c6cf2] bg-[#0c6cf2]"
/* SCSS */
$brand: #0c6cf2;
/* SwiftUI */
Color(red: 0.047, green: 0.424, blue: 0.949)
/* Android */
Color.parseColor("#0c6cf2")
/* Flutter */
Color(0xFF0C6CF2)
/* Python / OpenCV (BGR) */
(242, 108, 12)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #0c6cf2 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F2F6FD;
--brand-100: #E5EEFB;
--brand-200: #C3D9F9;
--brand-300: #94BEFA;
--brand-400: #5F9EF7;
--brand-500: #297EF4;
--brand-600: #0c6cf2;
--brand-700: #0A57C2;
--brand-800: #08459C;
--brand-900: #0A3570;
--brand-950: #062146;
--brand: #0c6cf2;
--brand-ink: #ffffff;
}Colors that work with #0c6cf2
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #0c6cf2
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #F2920C | Directly opposite — maximum tension | |
| Analogous left | #0CDFF2 | Neighbour, quieter | |
| Analogous right | #1F0CF2 | Neighbour, quieter | |
| Split-complement 1 | #F21F0C | Contrast without the clash | |
| Split-complement 2 | #DFF20C | Contrast without the clash | |
| Triadic 1 | #F20C6C | Even thirds — balanced and loud | |
| Triadic 2 | #6CF20C | Even thirds — balanced and loud | |
| Tetradic | #F20CDF | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#0c6cf2 text on a black background
contrast 4.44:1
#0c6cf2 text on a white background
contrast 4.73:1
CSS3 live lab
The quick brown fox
color: #0c6cf2;
background-color: #0c6cf2;
Glowing headline
text-shadow: 2px 2px 8px #0c6cf2;
Soft neon halo
text-shadow: 0 0 14px rgba(12, 108, 242, 0.45);
box-shadow: 0 12px 32px -8px rgba(12, 108, 242, 0.45);
border: 3px solid #0c6cf2; background: linear-gradient(135deg, #0c6cf2, #450CF2);
Monochromatic scale
Palettes built from #0c6cf2
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Royal Blue (#4169e1) — ΔE2000 3.4 away, with its history, psychology and brand usage.
#0c6cf2 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#0c6cf2, answered
What color is #0c6cf2?
#0c6cf2 is a balanced electric blue, closest to Royal Blue (ΔE2000 3.4). It sits at 215° on the hue wheel with 91% saturation and 50% lightness, which reads as cool.
What is the RGB value of #0c6cf2?
rgb(12, 108, 242) — 12 red, 108 green and 242 blue out of 255, or 4.7% / 42.4% / 94.9% by channel.
Is #0c6cf2 a light or a dark color?
It is a dark color. Relative luminance is 0.1721 and perceived brightness is 46%, so white text on it reaches 4.73:1.
Should I use black or white text on #0c6cf2?
White. It scores 4.73:1 against #0c6cf2, versus 4.44:1 for black — AA at any size.
What is the complementary color of #0c6cf2?
#F2920C sits directly opposite on the wheel. Softer options are the split-complements #F21F0C and #DFF20C, which give the same contrast with far less vibration.
What colors go well with #0c6cf2?
For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6C9B for secondary text, #F75707 as an accent and #06367A for hover and pressed states. For a palette, the analogous pair #0CDFF2 and #1F0CF2 stays calm, while #F2920C is the loudest partner.
What is #0c6cf2 in CMYK for printing?
cmyk(95%, 55%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #0c6cf2 warm or cool?
Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0C17F2; nudged cooler, #0866DC.