Skip to content

#6038df

a balanced, vivid blue · cool · closest name: Blue Violet

RGB
96, 56, 223
HSL
254°, 72%, 55%
CMYK
57, 75, 0, 13
Luminance
0.1064

At a glance

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

Hex
#6038df
Hue
254°
blue
Saturation
72%
vivid
Lightness
55%
balanced
Brightness
87%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1064
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.71:1
Closest name
Blue Violet
ΔE2000 6.2
Where it sits
Hue254° of 360°
Saturation72%
Lightness55%
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#6038df
RGBrgb(96, 56, 223)
HSLhsl(254, 72%, 55%)
CMYKcmyk(57%, 75%, 0%, 13%)
LABlab(39.0 58.2 -78.5)
LCHlch(39.0 97.7 306.6)
OKLCHoklch(0.500 0.234 285.2)
Decimal6306015
Display P3color(display-p3 0.376 0.220 0.875)

Copy-ready code

/* CSS */
color: #6038df;
background-color: #6038df;
/* Tailwind (arbitrary) */
class="text-[#6038df] bg-[#6038df]"
/* SCSS */
$brand: #6038df;
/* SwiftUI */
Color(red: 0.376, green: 0.220, blue: 0.875)
/* Android */
Color.parseColor("#6038df")
/* Flutter */
Color(0xFF6038DF)
/* Python / OpenCV (BGR) */
(223, 56, 96)

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 #6038df · 6.71:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.71:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.13:1
AA fail · AA large pass · AAA fail
Reading the other direction: #6038df as text scores 6.71:1 on white and 3.13:1 on black.

Accessibility — WCAG contrast

Aa
#6038df on white: 6.71:1
AA ✓ pass · AA-large · AAA
Aa
#6038df on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060E4
deuteranopia · #0057DC
tritanopia · #1C6789

Color scale — 50 to 950

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

#F5F3FC
#EBE7F8
#D3C9F3
#B29EEF
#8B6EE8
#6038df
#4C22D3
#401CB0
#33178D
#281466
#190D40
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #190D40
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE7F8;
  --brand-200: #D3C9F3;
  --brand-300: #B29EEF;
  --brand-400: #8B6EE8;
  --brand-500: #6038df;
  --brand-600: #4C22D3;
  --brand-700: #401CB0;
  --brand-800: #33178D;
  --brand-900: #281466;
  --brand-950: #190D40;
  --brand: #6038df;
  --brand-ink: #ffffff;
}

Colors that work with #6038df

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#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#B4B218
Second voice, not a rival
Dark variant#28126E
Hover, pressed, headers
Light variant#EDE9FB
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 #6038df

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
  • Brand accents, badges and data highlights
Use with care
  • 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#B7DF38
Analogous left#3863DF
Analogous right#B438DF
Split-complement 1#DFB438
Split-complement 2#63DF38
Triadic 1#DF6038
Triadic 2#38DF60
Tetradic#DF3863

RGB percentages

Red37.6%
Green22.0%
Blue87.5%

CMYK percentages

Cyan57.0%
Magenta74.9%
Yellow0.0%
Key (black)12.5%

Color previews

#6038df text on a black background

contrast 3.13:1

Card sample

#6038df text on a white background

contrast 6.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6038df;
Background color
Panel with #6038df background
background-color: #6038df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(96, 56, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(96, 56, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6038df;
background: linear-gradient(135deg, #6038df, #CF38DF);

Monochromatic scale

Palettes built from #6038df

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.

#6038df 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

Converts to four-color process without much drama. Proof it anyway.

#6038df, answered

What color is #6038df?

#6038df is a balanced vivid blue, closest to Blue Violet (ΔE2000 6.2). It sits at 254° on the hue wheel with 72% saturation and 55% lightness, which reads as cool.

What is the RGB value of #6038df?

rgb(96, 56, 223) — 96 red, 56 green and 223 blue out of 255, or 37.6% / 22% / 87.5% by channel.

Is #6038df a light or a dark color?

It is a dark color. Relative luminance is 0.1064 and perceived brightness is 40%, so white text on it reaches 6.71:1.

Should I use black or white text on #6038df?

White. It scores 6.71:1 against #6038df, versus 3.13:1 for black — AA at any size.

What is the complementary color of #6038df?

#B7DF38 sits directly opposite on the wheel. Softer options are the split-complements #DFB438 and #63DF38, which give the same contrast with far less vibration.

What colors go well with #6038df?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #B4B218 as an accent and #28126E for hover and pressed states. For a palette, the analogous pair #3863DF and #B438DF stays calm, while #B7DF38 is the loudest partner.

What is #6038df in CMYK for printing?

cmyk(57%, 75%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #6038df 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 #9D38DF; nudged cooler, #364BE1.

Work with #6038df in the Color Lab