#5856D6

Royal Blue

#5856D6Royal Blue

Luminance

0.136

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#5856D6
No #
5856D6

RGB

RGB
rgb(88, 86, 214)
Values
R:88 G:86 B:214

HSL

HSL
hsl(241, 61%, 59%)
Values
H:241° S:61% L:59%

HSV / HSB

HSV
hsv(241, 60%, 84%)
Values
H:241° S:60% V:84%

CMYK

CMYK
cmyk(59%, 60%, 0%, 16%)
Values
C:59 M:60 Y:0 K:16

LAB

LAB
lab(44, 38, -66)
Values
L:44 a:38 b:-66

OKLCH

OKLCH
oklch(52.9% 0.191 278.3)
Values
L:52.9% C:0.191 H:278.3°

Code Formats

CSS
color: #5856D6;
Swift
UIColor(red: 0.345, green: 0.337, blue: 0.839, alpha: 1.0)
Kotlin
Color(0xFF5856D6)
Flutter
Color(0xFF5856D6)
Android
#FF5856D6

Contrast Analysis

WCAG compliance with grayscale colors

On White

5.65:1

AA

On Black

3.72:1

AA-large

Grayscale Contrast

Aa

0%

3.7

AA-large
Aa

10%

3.1

AA-large
Aa

20%

2.2

Fail
Aa

30%

1.5

Fail
Aa

40%

1.0

Fail
Aa

50%

1.4

Fail
Aa

60%

2.0

Fail
Aa

70%

2.7

Fail
Aa

80%

3.5

AA-large
Aa

90%

4.5

AA-large
Aa

100%

5.6

AA

Best Grayscale Contrast

#FFFFFF with ratio 5.65: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, #AAA9EA 0%, #2927A0 100%)
OKLCH
linear-gradient(90deg, oklch(75.9% 0.093 284.7) 0%, oklch(37.2% 0.186 273.3) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #7674EC 0%, #1511E8 100%)
OKLCH
linear-gradient(135deg, oklch(62.0% 0.176 280.7) 0%, oklch(43.1% 0.284 266.1) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #5856D6 0%, #D4D657 100%)
OKLCH
linear-gradient(90deg, oklch(52.9% 0.191 278.3) 0%, oklch(85.0% 0.148 110.0) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #5794D6 0%, #5856D6 50%, #9957D6 100%)
OKLCH
linear-gradient(90deg, oklch(65.4% 0.118 251.7) 0%, oklch(52.9% 0.191 278.3) 50%, oklch(59.1% 0.191 305.3) 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, #5957D6 0%, #151528 100%)
OKLCH
linear-gradient(180deg, oklch(53.2% 0.190 278.5) 0%, oklch(20.6% 0.037 282.6) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #9694E5 0%, #2E2CB5 100%)
OKLCH
radial-gradient(circle, oklch(70.1% 0.117 284.1) 0%, oklch(40.5% 0.206 272.9) 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