#321dc2
a dark, vivid blue · cool · closest name: Medium Blue
At a glance
Every number on this page in one read: what #321dc2 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 | #321dc2 |
| RGB | rgb(50, 29, 194) |
| HSL | hsl(248, 74%, 44%) |
| CMYK | cmyk(74%, 85%, 0%, 24%) |
| LAB | lab(28.0 57.6 -80.0) |
| LCH | lch(28.0 98.6 305.8) |
| OKLCH | oklch(0.405 0.232 274.3) |
| Decimal | 3284418 |
| Display P3 | color(display-p3 0.196 0.114 0.761) |
Copy-ready code
/* CSS */
color: #321dc2;
background-color: #321dc2;
/* Tailwind (arbitrary) */
class="text-[#321dc2] bg-[#321dc2]"
/* SCSS */
$brand: #321dc2;
/* SwiftUI */
Color(red: 0.196, green: 0.114, blue: 0.761)
/* Android */
Color.parseColor("#321dc2")
/* Flutter */
Color(0xFF321DC2)
/* Python / OpenCV (BGR) */
(194, 29, 50)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. #321dc2 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F4F3FC;
--brand-100: #E9E7F9;
--brand-200: #CEC8F3;
--brand-300: #A89DF0;
--brand-400: #7C6DE9;
--brand-500: #513CE2;
--brand-600: #3720D5;
--brand-700: #321dc2;
--brand-800: #25158E;
--brand-900: #1E1467;
--brand-950: #130C40;
--brand: #321dc2;
--brand-ink: #ffffff;
}Colors that work with #321dc2
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 #321dc2
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
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠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 | #ADC21D | Directly opposite — maximum tension | |
| Analogous left | #1D5BC2 | Neighbour, quieter | |
| Analogous right | #841DC2 | Neighbour, quieter | |
| Split-complement 1 | #C2841D | Contrast without the clash | |
| Split-complement 2 | #5BC21D | Contrast without the clash | |
| Triadic 1 | #C2321D | Even thirds — balanced and loud | |
| Triadic 2 | #1DC232 | Even thirds — balanced and loud | |
| Tetradic | #C21D5B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#321dc2 text on a black background
contrast 2.09:1
#321dc2 text on a white background
contrast 10.05:1
CSS3 live lab
The quick brown fox
color: #321dc2;
background-color: #321dc2;
Glowing headline
text-shadow: 2px 2px 8px #321dc2;
Soft neon halo
text-shadow: 0 0 14px rgba(50, 29, 194, 0.45);
box-shadow: 0 12px 32px -8px rgba(50, 29, 194, 0.45);
border: 3px solid #321dc2; background: linear-gradient(135deg, #321dc2, #A01DC2);
Monochromatic scale
Palettes built from #321dc2
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: Blue (#0000ff) — ΔE2000 6.5 away, with its history, psychology and brand usage.
#321dc2 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#321dc2, answered
What color is #321dc2?
#321dc2 is a dark vivid blue, closest to Medium Blue (ΔE2000 3.4). It sits at 248° on the hue wheel with 74% saturation and 44% lightness, which reads as cool.
What is the RGB value of #321dc2?
rgb(50, 29, 194) — 50 red, 29 green and 194 blue out of 255, or 19.6% / 11.4% / 76.1% by channel.
Is #321dc2 a light or a dark color?
It is a dark color. Relative luminance is 0.0545 and perceived brightness is 29%, so white text on it reaches 10.05:1.
Should I use black or white text on #321dc2?
White. It scores 10.05:1 against #321dc2, versus 2.09:1 for black — AAA at any size.
What is the complementary color of #321dc2?
#ADC21D sits directly opposite on the wheel. Softer options are the split-complements #C2841D and #5BC21D, which give the same contrast with far less vibration.
What colors go well with #321dc2?
For interface work: #F5F4FA as the surface, #C5C0ED for borders, #554B9B for secondary text, #B5A217 as an accent and #1D116F for hover and pressed states. For a palette, the analogous pair #1D5BC2 and #841DC2 stays calm, while #ADC21D is the loudest partner.
What is #321dc2 in CMYK for printing?
cmyk(74%, 85%, 0%, 24%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #321dc2 warm or cool?
Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6E1DC2; nudged cooler, #1B3EC4.