Skip to content

#343cef

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

RGB
52, 60, 239
HSL
237°, 85%, 57%
CMYK
78, 75, 0, 6
Luminance
0.1019

At a glance

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

Hex
#343cef
Hue
237°
blue
Saturation
85%
electric
Lightness
57%
balanced
Brightness
94%
HSV value
Perceived
38%
weighted brightness
Luminance
0.1019
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.91:1
Closest name
Blue
ΔE2000 7
Where it sits
Hue237° of 360°
Saturation85%
Lightness57%
Temperature
Warm ← → Cool85% 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#343cef
RGBrgb(52, 60, 239)
HSLhsl(237, 85%, 57%)
CMYKcmyk(78%, 75%, 0%, 6%)
LABlab(38.2 56.8 -89.0)
LCHlch(38.2 105.6 302.5)
OKLCHoklch(0.491 0.258 270.2)
Decimal3423471
Display P3color(display-p3 0.204 0.235 0.937)

Copy-ready code

/* CSS */
color: #343cef;
background-color: #343cef;
/* Tailwind (arbitrary) */
class="text-[#343cef] bg-[#343cef]"
/* SCSS */
$brand: #343cef;
/* SwiftUI */
Color(red: 0.204, green: 0.235, blue: 0.937)
/* Android */
Color.parseColor("#343cef")
/* Flutter */
Color(0xFF343CEF)
/* Python / OpenCV (BGR) */
(239, 60, 52)

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 #343cef · 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: #343cef as text scores 6.91:1 on white and 3.04:1 on black.

Accessibility — WCAG contrast

Aa
#343cef on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#343cef on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063F4
deuteranopia · #0050EC
tritanopia · #007293

Color scale — 50 to 950

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

#F2F3FD
#E5E6FA
#C5C7F7
#979BF7
#6369F3
#343cef
#121BE3
#0F16BD
#0C1297
#0D116D
#080B44
Base = 500Lightest = 50 · #F2F3FDDarkest = 950 · #080B44
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E6FA;
  --brand-200: #C5C7F7;
  --brand-300: #979BF7;
  --brand-400: #6369F3;
  --brand-500: #343cef;
  --brand-600: #121BE3;
  --brand-700: #0F16BD;
  --brand-800: #0C1297;
  --brand-900: #0D116D;
  --brand-950: #080B44;
  --brand: #343cef;
  --brand-ink: #ffffff;
}

Colors that work with #343cef

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#F4F5FA
Tinted page background
Border#C0C2ED
Hairlines and dividers
Muted text#4B4E9B
Captions on the surface
Accent#C18C0B
Second voice, not a rival
Dark variant#090E76
Hover, pressed, headers
Light variant#E7E8FD
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 #343cef

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#EFE734
Analogous left#349AEF
Analogous right#8A34EF
Split-complement 1#EF8A34
Split-complement 2#9AEF34
Triadic 1#EF343C
Triadic 2#3CEF34
Tetradic#EF349A

RGB percentages

Red20.4%
Green23.5%
Blue93.7%

CMYK percentages

Cyan78.2%
Magenta74.9%
Yellow0.0%
Key (black)6.3%

Color previews

#343cef text on a black background

contrast 3.04:1

Card sample

#343cef text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #343cef;
Background color
Panel with #343cef background
background-color: #343cef;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(52, 60, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 60, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #343cef;
background: linear-gradient(135deg, #343cef, #A934EF);

Monochromatic scale

Palettes built from #343cef

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.

#343cef 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.

#343cef, answered

What color is #343cef?

#343cef is a balanced electric blue, closest to Blue (ΔE2000 7). It sits at 237° on the hue wheel with 85% saturation and 57% lightness, which reads as cool.

What is the RGB value of #343cef?

rgb(52, 60, 239) — 52 red, 60 green and 239 blue out of 255, or 20.4% / 23.5% / 93.7% by channel.

Is #343cef 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 #343cef?

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

What is the complementary color of #343cef?

#EFE734 sits directly opposite on the wheel. Softer options are the split-complements #EF8A34 and #9AEF34, which give the same contrast with far less vibration.

What colors go well with #343cef?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4E9B for secondary text, #C18C0B as an accent and #090E76 for hover and pressed states. For a palette, the analogous pair #349AEF and #8A34EF stays calm, while #EFE734 is the loudest partner.

What is #343cef in CMYK for printing?

cmyk(78%, 75%, 0%, 6%). 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 #343cef warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7134EF; nudged cooler, #3264F1.

Work with #343cef in the Color Lab