#1E3A8A

Cobalt

#1E3A8ACobalt

Luminance

0.051

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#1E3A8A
No #
1E3A8A

RGB

RGB
rgb(30, 58, 138)
Values
R:30 G:58 B:138

HSL

HSL
hsl(224, 64%, 33%)
Values
H:224° S:64% L:33%

HSV / HSB

HSV
hsv(224, 78%, 54%)
Values
H:224° S:78% V:54%

CMYK

CMYK
cmyk(78%, 58%, 0%, 46%)
Values
C:78 M:58 Y:0 K:46

LAB

LAB
lab(27, 20, -48)
Values
L:27 a:20 b:-48

OKLCH

OKLCH
oklch(37.9% 0.138 265.5)
Values
L:37.9% C:0.138 H:265.5°

Code Formats

CSS
color: #1E3A8A;
Swift
UIColor(red: 0.118, green: 0.227, blue: 0.541, alpha: 1.0)
Kotlin
Color(0xFF1E3A8A)
Flutter
Color(0xFF1E3A8A)
Android
#FF1E3A8A

Contrast Analysis

WCAG compliance with grayscale colors

On White

10.36:1

AAA

On Black

2.03:1

Fail

Grayscale Contrast

Aa

0%

2.0

Fail
Aa

10%

1.7

Fail
Aa

20%

1.2

Fail
Aa

30%

1.2

Fail
Aa

40%

1.8

Fail
Aa

50%

2.6

Fail
Aa

60%

3.6

AA-large
Aa

70%

4.9

AA
Aa

80%

6.4

AA
Aa

90%

8.2

AAA
Aa

100%

10.4

AAA

Best Grayscale Contrast

#FFFFFF with ratio 10.36: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, #3A63D4 0%, #172D69 100%)
OKLCH
linear-gradient(90deg, oklch(53.5% 0.180 265.6) 0%, oklch(31.9% 0.109 265.4) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #1745C4 0%, #0B3CC1 100%)
OKLCH
linear-gradient(135deg, oklch(45.2% 0.203 264.2) 0%, oklch(43.0% 0.212 263.8) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #1E3A8A 0%, #8A6D1E 100%)
OKLCH
linear-gradient(90deg, oklch(37.9% 0.138 265.5) 0%, oklch(54.9% 0.100 87.5) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #1E718A 0%, #1E3A8A 50%, #371E8A 100%)
OKLCH
linear-gradient(90deg, oklch(51.2% 0.085 222.8) 0%, oklch(37.9% 0.138 265.5) 50%, oklch(34.8% 0.165 284.4) 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, #1E3B8A 0%, #141A29 100%)
OKLCH
linear-gradient(180deg, oklch(38.1% 0.136 265.2) 0%, oklch(22.0% 0.031 267.1) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #2C56C9 0%, #1C367D 100%)
OKLCH
radial-gradient(circle, oklch(49.5% 0.185 265.0) 0%, oklch(35.8% 0.125 265.3) 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