#334155

Charcoal

#334155Charcoal

Luminance

0.051

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#334155
No #
334155

RGB

RGB
rgb(51, 65, 85)
Values
R:51 G:65 B:85

HSL

HSL
hsl(215, 25%, 27%)
Values
H:215° S:25% L:27%

HSV / HSB

HSV
hsv(215, 40%, 33%)
Values
H:215° S:40% V:33%

CMYK

CMYK
cmyk(40%, 24%, 0%, 67%)
Values
C:40 M:24 Y:0 K:67

LAB

LAB
lab(27, 0, -14)
Values
L:27 a:0 b:-14

OKLCH

OKLCH
oklch(37.2% 0.039 257.3)
Values
L:37.2% C:0.039 H:257.3°

Code Formats

CSS
color: #334155;
Swift
UIColor(red: 0.200, green: 0.255, blue: 0.333, alpha: 1.0)
Kotlin
Color(0xFF334155)
Flutter
Color(0xFF334155)
Android
#FF334155

Contrast Analysis

WCAG compliance with grayscale colors

On White

10.35: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.35: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, #5A7396 0%, #303D50 100%)
OKLCH
linear-gradient(90deg, oklch(55.0% 0.062 256.9) 0%, oklch(35.7% 0.037 257.8) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #395884 0%, #335D99 100%)
OKLCH
linear-gradient(135deg, oklch(45.7% 0.081 257.2) 0%, oklch(47.8% 0.108 257.5) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #334155 0%, #564834 100%)
OKLCH
linear-gradient(90deg, oklch(37.2% 0.039 257.3) 0%, oklch(41.0% 0.037 76.3) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #345356 0%, #334155 50%, #373456 100%)
OKLCH
linear-gradient(90deg, oklch(41.9% 0.037 203.6) 0%, oklch(37.2% 0.039 257.3) 50%, oklch(34.4% 0.059 286.9) 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, #344256 0%, #181E25 100%)
OKLCH
linear-gradient(180deg, oklch(37.5% 0.039 257.3) 0%, oklch(23.2% 0.016 252.5) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #506786 0%, #394960 100%)
OKLCH
radial-gradient(circle, oklch(50.8% 0.057 256.0) 0%, oklch(40.2% 0.044 257.4) 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