Skip to content

#065da2

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

RGB
6, 93, 162
HSL
207°, 93%, 33%
CMYK
96, 43, 0, 37
Luminance
0.1048

At a glance

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

Hex
#065da2
Hue
207°
blue
Saturation
93%
electric
Lightness
33%
dark
Brightness
64%
HSV value
Perceived
35%
weighted brightness
Luminance
0.1048
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.78:1
Closest name
Royal Blue
ΔE2000 11.2
Where it sits
Hue207° of 360°
Saturation93%
Lightness33%
Temperature
Warm ← → Cool99% 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#065da2
RGBrgb(6, 93, 162)
HSLhsl(207, 93%, 33%)
CMYKcmyk(96%, 43%, 0%, 37%)
LABlab(38.7 4.3 -43.6)
LCHlch(38.7 43.8 275.6)
OKLCHoklch(0.472 0.133 250.5)
Decimal417186
Display P3color(display-p3 0.024 0.365 0.635)

Copy-ready code

/* CSS */
color: #065da2;
background-color: #065da2;
/* Tailwind (arbitrary) */
class="text-[#065da2] bg-[#065da2]"
/* SCSS */
$brand: #065da2;
/* SwiftUI */
Color(red: 0.024, green: 0.365, blue: 0.635)
/* Android */
Color.parseColor("#065da2")
/* Flutter */
Color(0xFF065DA2)
/* Python / OpenCV (BGR) */
(162, 93, 6)

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

Accessibility — WCAG contrast

Aa
#065da2 on white: 6.78:1
AA ✓ pass · AA-large · AAA
Aa
#065da2 on black: 3.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3962A5
deuteranopia · #1D55A1
tritanopia · #006E77

Color scale — 50 to 950

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

#F2F8FD
#E4F1FB
#C2E1F9
#93CDFB
#5DB4F9
#279BF7
#0988EC
#0771C5
#065da2
#094372
#062A47
Base = 800Lightest = 50 · #F2F8FDDarkest = 950 · #062A47
:root {
  --brand-50: #F2F8FD;
  --brand-100: #E4F1FB;
  --brand-200: #C2E1F9;
  --brand-300: #93CDFB;
  --brand-400: #5DB4F9;
  --brand-500: #279BF7;
  --brand-600: #0988EC;
  --brand-700: #0771C5;
  --brand-800: #065da2;
  --brand-900: #094372;
  --brand-950: #062A47;
  --brand: #065da2;
  --brand-ink: #ffffff;
}

Colors that work with #065da2

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#F4F8FA
Tinted page background
Border#C0D9ED
Hairlines and dividers
Muted text#4B779B
Captions on the surface
Accent#A52203
Second voice, not a rival
Dark variant#05477B
Hover, pressed, headers
Light variant#E6F4FE
Selected rows, tints
Dark surface#141D24
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 #065da2

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
  • 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#A24B06
Analogous left#06A299
Analogous right#060FA2
Split-complement 1#A2060F
Split-complement 2#A29906
Triadic 1#A2065D
Triadic 2#5DA206
Tetradic#9906A2

RGB percentages

Red2.4%
Green36.5%
Blue63.5%

CMYK percentages

Cyan96.3%
Magenta42.6%
Yellow0.0%
Key (black)36.5%

Color previews

#065da2 text on a black background

contrast 3.10:1

Card sample

#065da2 text on a white background

contrast 6.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #065da2;
Background color
Panel with #065da2 background
background-color: #065da2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(6, 93, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 93, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #065da2;
background: linear-gradient(135deg, #065da2, #1706A2);

Monochromatic scale

Palettes built from #065da2

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.

#065da2 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.

#065da2, answered

What color is #065da2?

#065da2 is a dark electric blue, closest to Royal Blue (ΔE2000 11.2). It sits at 207° on the hue wheel with 93% saturation and 33% lightness, which reads as cool.

What is the RGB value of #065da2?

rgb(6, 93, 162) — 6 red, 93 green and 162 blue out of 255, or 2.4% / 36.5% / 63.5% by channel.

Is #065da2 a light or a dark color?

It is a dark color. Relative luminance is 0.1048 and perceived brightness is 35%, so white text on it reaches 6.78:1.

Should I use black or white text on #065da2?

White. It scores 6.78:1 against #065da2, versus 3.10:1 for black — AA at any size.

What is the complementary color of #065da2?

#A24B06 sits directly opposite on the wheel. Softer options are the split-complements #A2060F and #A29906, which give the same contrast with far less vibration.

What colors go well with #065da2?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B779B for secondary text, #A52203 as an accent and #05477B for hover and pressed states. For a palette, the analogous pair #06A299 and #060FA2 stays calm, while #A24B06 is the loudest partner.

What is #065da2 in CMYK for printing?

cmyk(96%, 43%, 0%, 37%). 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 #065da2 warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0624A2; nudged cooler, #04488B.

Work with #065da2 in the Color Lab