Skip to content

#2c03af

a dark, electric blue · cool · closest name: Medium Blue

RGB
44, 3, 175
HSL
254°, 97%, 35%
CMYK
75, 98, 0, 31
Luminance
0.0370

At a glance

Every number on this page in one read: what #2c03af is made of, how bright it looks, and which way it leans.

Hex
#2c03af
Hue
254°
blue
Saturation
97%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0370
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.07:1
Closest name
Medium Blue
ΔE2000 3.6
Where it sits
Hue254° of 360°
Saturation97%
Lightness35%
Temperature
Warm ← → Cool75% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2c03af
RGBrgb(44, 3, 175)
HSLhsl(254, 97%, 35%)
CMYKcmyk(75%, 98%, 0%, 31%)
LABlab(22.6 59.7 -77.6)
LCHlch(22.6 97.9 307.6)
OKLCHoklch(0.361 0.225 275.0)
Decimal2884527
Display P3color(display-p3 0.173 0.012 0.686)

Copy-ready code

/* CSS */
color: #2c03af;
background-color: #2c03af;
/* Tailwind (arbitrary) */
class="text-[#2c03af] bg-[#2c03af]"
/* SCSS */
$brand: #2c03af;
/* SwiftUI */
Color(red: 0.173, green: 0.012, blue: 0.686)
/* Android */
Color.parseColor("#2c03af")
/* Flutter */
Color(0xFF2C03AF)
/* Python / OpenCV (BGR) */
(175, 3, 44)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #2c03af · 12.07:1
Use #ffffffAAA at every size.
Aa
White text · 12.07:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.74:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2c03af as text scores 12.07:1 on white and 1.74:1 on black.

Accessibility — WCAG contrast

Aa
#2c03af on white: 12.07:1
AA ✓ pass · AA-large · AAA
Aa
#2c03af on black: 1.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003DB3
deuteranopia · #002FAC
tritanopia · #004765

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c03af is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F1FD
#E9E4FC
#CFC1FB
#AB91FD
#805AFC
#5622FB
#3D04F1
#3203C9
#2c03af
#210774
#140448
Base = 800Lightest = 50 · #F4F1FDDarkest = 950 · #140448
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E9E4FC;
  --brand-200: #CFC1FB;
  --brand-300: #AB91FD;
  --brand-400: #805AFC;
  --brand-500: #5622FB;
  --brand-600: #3D04F1;
  --brand-700: #3203C9;
  --brand-800: #2c03af;
  --brand-900: #210774;
  --brand-950: #140448;
  --brand: #2c03af;
  --brand-ink: #ffffff;
}

Colors that work with #2c03af

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F4FA
Tinted page background
Border#CAC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#CCCA00
Second voice, not a rival
Dark variant#20027D
Hover, pressed, headers
Light variant#ECE6FF
Selected rows, tints
Dark surface#181424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2c03af

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#86AF03
Analogous left#0330AF
Analogous right#8203AF
Split-complement 1#AF8203
Split-complement 2#30AF03
Triadic 1#AF2C03
Triadic 2#03AF2C
Tetradic#AF0330

RGB percentages

Red17.3%
Green1.2%
Blue68.6%

CMYK percentages

Cyan74.9%
Magenta98.3%
Yellow0.0%
Key (black)31.4%

Color previews

#2c03af text on a black background

contrast 1.74:1

Card sample

#2c03af text on a white background

contrast 12.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c03af;
Background color
Panel with #2c03af background
background-color: #2c03af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2c03af;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(44, 3, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 3, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c03af;
background: linear-gradient(135deg, #2c03af, #9F03AF);

Monochromatic scale

Palettes built from #2c03af

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.

#2c03af in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2c03af, answered

What color is #2c03af?

#2c03af is a dark electric blue, closest to Medium Blue (ΔE2000 3.6). It sits at 254° on the hue wheel with 97% saturation and 35% lightness, which reads as cool.

What is the RGB value of #2c03af?

rgb(44, 3, 175) — 44 red, 3 green and 175 blue out of 255, or 17.3% / 1.2% / 68.6% by channel.

Is #2c03af a light or a dark color?

It is a dark color. Relative luminance is 0.0370 and perceived brightness is 25%, so white text on it reaches 12.07:1.

Should I use black or white text on #2c03af?

White. It scores 12.07:1 against #2c03af, versus 1.74:1 for black — AAA at any size.

What is the complementary color of #2c03af?

#86AF03 sits directly opposite on the wheel. Softer options are the split-complements #AF8203 and #30AF03, which give the same contrast with far less vibration.

What colors go well with #2c03af?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5E4B9B for secondary text, #CCCA00 as an accent and #20027D for hover and pressed states. For a palette, the analogous pair #0330AF and #8203AF stays calm, while #86AF03 is the loudest partner.

What is #2c03af in CMYK for printing?

cmyk(75%, 98%, 0%, 31%). 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 #2c03af warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6B03AF; nudged cooler, #0118B1.

Work with #2c03af in the Color Lab