#1D4ED8

Royal Blue

#1D4ED8Royal Blue

Luminance

0.107

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#1D4ED8
No #
1D4ED8

RGB

RGB
rgb(29, 78, 216)
Values
R:29 G:78 B:216

HSL

HSL
hsl(224, 76%, 48%)
Values
H:224° S:76% L:48%

HSV / HSB

HSV
hsv(224, 87%, 85%)
Values
H:224° S:87% V:85%

CMYK

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

LAB

LAB
lab(39, 37, -75)
Values
L:39 a:37 b:-75

OKLCH

OKLCH
oklch(48.8% 0.217 264.4)
Values
L:48.8% C:0.217 H:264.4°

Code Formats

CSS
color: #1D4ED8;
Swift
UIColor(red: 0.114, green: 0.306, blue: 0.847, alpha: 1.0)
Kotlin
Color(0xFF1D4ED8)
Flutter
Color(0xFF1D4ED8)
Android
#FF1D4ED8

Contrast Analysis

WCAG compliance with grayscale colors

On White

6.70:1

AA

On Black

3.13:1

AA-large

Grayscale Contrast

Aa

0%

3.1

AA-large
Aa

10%

2.6

Fail
Aa

20%

1.9

Fail
Aa

30%

1.3

Fail
Aa

40%

1.2

Fail
Aa

50%

1.7

Fail
Aa

60%

2.4

Fail
Aa

70%

3.2

AA-large
Aa

80%

4.2

AA-large
Aa

90%

5.3

AA
Aa

100%

6.7

AA

Best Grayscale Contrast

#FFFFFF with ratio 6.70: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, #6F90EB 0%, #112E7E 100%)
OKLCH
linear-gradient(90deg, oklch(66.9% 0.140 267.5) 0%, oklch(33.8% 0.140 264.6) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #3266F5 0%, #0036CC 100%)
OKLCH
linear-gradient(135deg, oklch(56.4% 0.221 264.8) 0%, oklch(43.1% 0.232 263.6) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #1D4ED8 0%, #D7A61D 100%)
OKLCH
linear-gradient(90deg, oklch(48.8% 0.217 264.4) 0%, oklch(75.0% 0.147 86.2) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #1DACD7 0%, #1D4ED8 50%, #491DD7 100%)
OKLCH
linear-gradient(90deg, oklch(69.4% 0.126 225.0) 0%, oklch(48.8% 0.217 264.4) 50%, oklch(44.6% 0.249 280.0) 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, #1D4FD7 0%, #11182D 100%)
OKLCH
linear-gradient(180deg, oklch(48.9% 0.215 264.2) 0%, oklch(21.4% 0.043 268.7) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #597FE8 0%, #143694 100%)
OKLCH
radial-gradient(circle, oklch(62.0% 0.164 266.7) 0%, oklch(37.6% 0.159 264.5) 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