#5865F2

Royal Blue

#5865F2Royal Blue

Luminance

0.178

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#5865F2
No #
5865F2

RGB

RGB
rgb(88, 101, 242)
Values
R:88 G:101 B:242

HSL

HSL
hsl(235, 86%, 65%)
Values
H:235° S:86% L:65%

HSV / HSB

HSV
hsv(235, 64%, 95%)
Values
H:235° S:64% V:95%

CMYK

CMYK
cmyk(64%, 58%, 0%, 5%)
Values
C:64 M:58 Y:0 K:5

LAB

LAB
lab(49, 38, -72)
Values
L:49 a:38 b:-72

OKLCH

OKLCH
oklch(57.7% 0.209 273.9)
Values
L:57.7% C:0.209 H:273.9°

Code Formats

CSS
color: #5865F2;
Swift
UIColor(red: 0.345, green: 0.396, blue: 0.949, alpha: 1.0)
Kotlin
Color(0xFF5865F2)
Flutter
Color(0xFF5865F2)
Android
#FF5865F2

Contrast Analysis

WCAG compliance with grayscale colors

On White

4.61:1

AA

On Black

4.56:1

AA

Grayscale Contrast

Aa

0%

4.6

AA
Aa

10%

3.8

AA-large
Aa

20%

2.7

Fail
Aa

30%

1.8

Fail
Aa

40%

1.2

Fail
Aa

50%

1.2

Fail
Aa

60%

1.6

Fail
Aa

70%

2.2

Fail
Aa

80%

2.9

Fail
Aa

90%

3.7

AA-large
Aa

100%

4.6

AA

Best Grayscale Contrast

#FFFFFF with ratio 4.61:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #B8BDFA 0%, #1021D5 100%)
OKLCH
linear-gradient(90deg, oklch(81.6% 0.086 280.7) 0%, oklch(41.8% 0.258 265.7) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #6673FF 0%, #1A2DFF 100%)
OKLCH
linear-gradient(135deg, oklch(62.1% 0.206 274.7) 0%, oklch(48.3% 0.292 266.1) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #5865F2 0%, #F3E659 100%)
OKLCH
linear-gradient(90deg, oklch(57.7% 0.209 273.9) 0%, oklch(91.0% 0.159 104.0) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #59B3F3 0%, #5865F2 50%, #9959F3 100%)
OKLCH
linear-gradient(90deg, oklch(73.8% 0.127 242.2) 0%, oklch(57.7% 0.209 273.9) 50%, oklch(61.3% 0.220 298.8) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #4150F1 0%, #0D1030 100%)
OKLCH
linear-gradient(180deg, oklch(52.9% 0.237 271.2) 0%, oklch(19.3% 0.063 274.8) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #8892F6 0%, #1224ED 100%)
OKLCH
radial-gradient(circle, oklch(69.5% 0.146 277.6) 0%, oklch(45.0% 0.281 265.6) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette