#303F9F

Cobalt

#303F9FCobalt

Luminance

0.067

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#303F9F
No #
303F9F

RGB

RGB
rgb(48, 63, 159)
Values
R:48 G:63 B:159

HSL

HSL
hsl(232, 54%, 41%)
Values
H:232° S:54% L:41%

HSV / HSB

HSV
hsv(232, 70%, 62%)
Values
H:232° S:70% V:62%

CMYK

CMYK
cmyk(70%, 60%, 0%, 38%)
Values
C:70 M:60 Y:0 K:38

LAB

LAB
lab(31, 27, -54)
Values
L:31 a:27 b:-54

OKLCH

OKLCH
oklch(41.6% 0.156 271.2)
Values
L:41.6% C:0.156 H:271.2°

Code Formats

CSS
color: #303F9F;
Swift
UIColor(red: 0.188, green: 0.247, blue: 0.624, alpha: 1.0)
Kotlin
Color(0xFF303F9F)
Flutter
Color(0xFF303F9F)
Android
#FF303F9F

Contrast Analysis

WCAG compliance with grayscale colors

On White

8.98:1

AAA

On Black

2.34:1

Fail

Grayscale Contrast

Aa

0%

2.3

Fail
Aa

10%

1.9

Fail
Aa

20%

1.4

Fail
Aa

30%

1.1

Fail
Aa

40%

1.6

Fail
Aa

50%

2.2

Fail
Aa

60%

3.2

AA-large
Aa

70%

4.3

AA-large
Aa

80%

5.6

AA
Aa

90%

7.1

AAA
Aa

100%

9.0

AAA

Best Grayscale Contrast

#FFFFFF with ratio 8.98: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, #6674D1 0%, #1D2762 100%)
OKLCH
linear-gradient(90deg, oklch(59.2% 0.142 274.8) 0%, oklch(30.3% 0.105 271.4) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #2C43D8 0%, #152BB7 100%)
OKLCH
linear-gradient(135deg, oklch(47.4% 0.226 268.4) 0%, oklch(39.5% 0.215 266.5) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #303F9F 0%, #A19230 100%)
OKLCH
linear-gradient(90deg, oklch(41.6% 0.156 271.2) 0%, oklch(65.5% 0.117 100.4) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #3078A1 0%, #303F9F 50%, #5930A1 100%)
OKLCH
linear-gradient(90deg, oklch(54.6% 0.095 237.3) 0%, oklch(41.6% 0.156 271.2) 50%, oklch(42.8% 0.172 294.7) 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, #303FA1 0%, #171926 100%)
OKLCH
linear-gradient(180deg, oklch(41.8% 0.158 271.1) 0%, oklch(21.8% 0.026 277.3) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #5262CB 0%, #232E76 100%)
OKLCH
radial-gradient(circle, oklch(53.9% 0.162 273.2) 0%, oklch(33.9% 0.123 271.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