Skip to content

#4340df

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

RGB
67, 64, 223
HSL
241°, 71%, 56%
CMYK
70, 71, 0, 13
Luminance
0.1019

At a glance

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

Hex
#4340df
Hue
241°
blue
Saturation
71%
vivid
Lightness
56%
balanced
Brightness
87%
HSV value
Perceived
38%
weighted brightness
Luminance
0.1019
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.91:1
Closest name
Blue
ΔE2000 8.2
Where it sits
Hue241° of 360°
Saturation71%
Lightness56%
Temperature
Warm ← → Cool83% 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#4340df
RGBrgb(67, 64, 223)
HSLhsl(241, 71%, 56%)
CMYKcmyk(70%, 71%, 0%, 13%)
LABlab(38.2 50.7 -79.9)
LCHlch(38.2 94.7 302.4)
OKLCHoklch(0.488 0.232 274.4)
Decimal4407519
Display P3color(display-p3 0.263 0.251 0.875)

Copy-ready code

/* CSS */
color: #4340df;
background-color: #4340df;
/* Tailwind (arbitrary) */
class="text-[#4340df] bg-[#4340df]"
/* SCSS */
$brand: #4340df;
/* SwiftUI */
Color(red: 0.263, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#4340df")
/* Flutter */
Color(0xFF4340DF)
/* Python / OpenCV (BGR) */
(223, 64, 67)

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

Accessibility — WCAG contrast

Aa
#4340df on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#4340df on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061E4
deuteranopia · #0052DC
tritanopia · #006D8B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #4340df 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.

#F3F3FC
#E8E7F8
#CAC9F3
#A09FEF
#716FE7
#4340df
#2623D2
#201DAF
#1A178C
#171565
#0E0D3F
Base = 500Lightest = 50 · #F3F3FCDarkest = 950 · #0E0D3F
:root {
  --brand-50: #F3F3FC;
  --brand-100: #E8E7F8;
  --brand-200: #CAC9F3;
  --brand-300: #A09FEF;
  --brand-400: #716FE7;
  --brand-500: #4340df;
  --brand-600: #2623D2;
  --brand-700: #201DAF;
  --brand-800: #1A178C;
  --brand-900: #171565;
  --brand-950: #0E0D3F;
  --brand: #4340df;
  --brand-ink: #ffffff;
}

Colors that work with #4340df

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#F4F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#B2901A
Second voice, not a rival
Dark variant#14126D
Hover, pressed, headers
Light variant#E9E9FB
Selected rows, tints
Dark surface#141424
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 #4340df

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#DCDF40
Analogous left#408DDF
Analogous right#9240DF
Split-complement 1#DF9240
Split-complement 2#8DDF40
Triadic 1#DF4340
Triadic 2#40DF43
Tetradic#DF408D

RGB percentages

Red26.3%
Green25.1%
Blue87.5%

CMYK percentages

Cyan70.0%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#4340df text on a black background

contrast 3.04:1

Card sample

#4340df text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4340df

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.

#4340df 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.

#4340df, answered

What color is #4340df?

#4340df is a balanced vivid blue, closest to Blue (ΔE2000 8.2). It sits at 241° on the hue wheel with 71% saturation and 56% lightness, which reads as cool.

What is the RGB value of #4340df?

rgb(67, 64, 223) — 67 red, 64 green and 223 blue out of 255, or 26.3% / 25.1% / 87.5% by channel.

Is #4340df a light or a dark color?

It is a dark color. Relative luminance is 0.1019 and perceived brightness is 38%, so white text on it reaches 6.91:1.

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

White. It scores 6.91:1 against #4340df, versus 3.04:1 for black — AA at any size.

What is the complementary color of #4340df?

#DCDF40 sits directly opposite on the wheel. Softer options are the split-complements #DF9240 and #8DDF40, which give the same contrast with far less vibration.

What colors go well with #4340df?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4C4B9B for secondary text, #B2901A as an accent and #14126D for hover and pressed states. For a palette, the analogous pair #408DDF and #9240DF stays calm, while #DCDF40 is the loudest partner.

What is #4340df in CMYK for printing?

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

Is #4340df warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7D40DF; nudged cooler, #3E67E1.

Work with #4340df in the Color Lab