#5B7AFF

Royal Blue

#5B7AFFRoyal Blue

Luminance

0.234

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#5B7AFF
No #
5B7AFF

RGB

RGB
rgb(91, 122, 255)
Values
R:91 G:122 B:255

HSL

HSL
hsl(229, 100%, 68%)
Values
H:229° S:100% L:68%

HSV / HSB

HSV
hsv(229, 64%, 100%)
Values
H:229° S:64% V:100%

CMYK

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

LAB

LAB
lab(55, 30, -70)
Values
L:55 a:30 b:-70

OKLCH

OKLCH
oklch(62.7% 0.200 269.9)
Values
L:62.7% C:0.200 H:269.9°

Code Formats

CSS
color: #5B7AFF;
Swift
UIColor(red: 0.357, green: 0.478, blue: 1.000, alpha: 1.0)
Kotlin
Color(0xFF5B7AFF)
Flutter
Color(0xFF5B7AFF)
Android
#FF5B7AFF

Contrast Analysis

WCAG compliance with grayscale colors

On White

3.70:1

AA-large

On Black

5.67:1

AA

Grayscale Contrast

Aa

0%

5.7

AA
Aa

10%

4.7

AA
Aa

20%

3.4

AA-large
Aa

30%

2.3

Fail
Aa

40%

1.6

Fail
Aa

50%

1.1

Fail
Aa

60%

1.3

Fail
Aa

70%

1.8

Fail
Aa

80%

2.3

Fail
Aa

90%

2.9

Fail
Aa

100%

3.7

AA-large

Best Grayscale Contrast

#000000 with ratio 5.67: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, #B3C1FF 0%, #002DF5 100%)
OKLCH
linear-gradient(90deg, oklch(82.2% 0.089 274.4) 0%, oklch(46.6% 0.285 264.2) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #6682FF 0%, #2950FF 100%)
OKLCH
linear-gradient(135deg, oklch(64.8% 0.187 270.9) 0%, oklch(53.2% 0.260 266.4) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #5B7AFF 0%, #FFE15C 100%)
OKLCH
linear-gradient(90deg, oklch(62.7% 0.200 269.9) 0%, oklch(91.1% 0.153 96.5) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #5CCBFF 0%, #5B7AFF 50%, #8F5CFF 100%)
OKLCH
linear-gradient(90deg, oklch(79.8% 0.125 231.6) 0%, oklch(62.7% 0.200 269.9) 50%, oklch(61.6% 0.229 292.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, #3358FF 0%, #091134 100%)
OKLCH
linear-gradient(180deg, oklch(54.8% 0.249 267.2) 0%, oklch(19.6% 0.070 269.2) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #8097FF 0%, #0F3BFF 100%)
OKLCH
radial-gradient(circle, oklch(70.5% 0.154 272.5) 0%, oklch(49.6% 0.283 264.8) 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