#21262D

Charcoal

#21262DCharcoal

Luminance

0.019

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#21262D
No #
21262D

RGB

RGB
rgb(33, 38, 45)
Values
R:33 G:38 B:45

HSL

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

HSV / HSB

HSV
hsv(215, 27%, 18%)
Values
H:215° S:27% V:18%

CMYK

CMYK
cmyk(27%, 16%, 0%, 82%)
Values
C:27 M:16 Y:0 K:82

LAB

LAB
lab(15, 0, -5)
Values
L:15 a:0 b:-5

OKLCH

OKLCH
oklch(26.7% 0.015 256.8)
Values
L:26.7% C:0.015 H:256.8°

Code Formats

CSS
color: #21262D;
Swift
UIColor(red: 0.129, green: 0.149, blue: 0.176, alpha: 1.0)
Kotlin
Color(0xFF21262D)
Flutter
Color(0xFF21262D)
Android
#FF21262D

Contrast Analysis

WCAG compliance with grayscale colors

On White

15.22:1

AAA

On Black

1.38:1

Fail

Grayscale Contrast

Aa

0%

1.4

Fail
Aa

10%

1.1

Fail
Aa

20%

1.2

Fail
Aa

30%

1.8

Fail
Aa

40%

2.7

Fail
Aa

50%

3.8

AA-large
Aa

60%

5.3

AA
Aa

70%

7.3

AAA
Aa

80%

9.5

AAA
Aa

90%

12.1

AAA
Aa

100%

15.2

AAA

Best Grayscale Contrast

#FFFFFF with ratio 15.22: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, #4C5767 0%, #363E49 100%)
OKLCH
linear-gradient(90deg, oklch(45.3% 0.030 257.7) 0%, oklch(36.1% 0.022 256.4) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #2D3D53 0%, #3D5F8F 100%)
OKLCH
linear-gradient(135deg, oklch(35.6% 0.044 256.5) 0%, oklch(48.2% 0.087 257.1) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #21262D 0%, #2C2721 100%)
OKLCH
linear-gradient(90deg, oklch(26.7% 0.015 256.8) 0%, oklch(27.6% 0.013 72.3) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #212B2C 0%, #21262D 50%, #21212C 100%)
OKLCH
linear-gradient(90deg, oklch(28.0% 0.014 203.9) 0%, oklch(26.7% 0.015 256.8) 50%, oklch(25.3% 0.021 284.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, #21252C 0%, #181E25 100%)
OKLCH
linear-gradient(180deg, oklch(26.3% 0.014 261.7) 0%, oklch(23.2% 0.016 252.5) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #414B58 0%, #414B58 100%)
OKLCH
radial-gradient(circle, oklch(40.9% 0.025 255.1) 0%, oklch(40.9% 0.025 255.1) 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