#021C21

A color in the Cyan, Emerald family

#021c21 is a color in the Cyan, Emerald family: RGB(2, 28, 33), HSL(190°, 89%, 7%), CMYK(94%, 15%, 0%, 87%). Closest named color: midnightblue. Contrast is 17.64:1 on white and 1.19:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#021c21
RGBrgb(2 28 33)
RGB (legacy)rgb(2, 28, 33)
RGB %rgb(1% 11% 13%)
HSLhsl(190 89% 7%)
HSV / HSBhsv(190, 94%, 13%)
HWBhwb(190 1% 87%)
CMYKcmyk(94%, 15%, 0%, 87%)
CIELAB (D50)lab(8.47 -8.58 -6.63)
LCHlch(8.47 10.84 217.72)
OKLaboklab(0.2089 -0.0286 -0.0179)
OKLCHoklch(0.2089 0.0338 212.05)
Decimal138273

Properties

Color ToneCyan, Emerald
Closest named colormidnightblue ΔE 15.3
Closest web-safe color#003333
Hue190°
Saturation (HSL / HSV)89% / 94%
Lightness (HSL)7%
Brightness or Value (HSV)13%
Luminance (Rec.601 / Rec.709)8% / 9%
Relative luminance (WCAG)0.0095
Red / Green / Blue2 / 28 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
17.64:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.19:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 104.3 / 0 · As background with white / black text: Lc -106.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #021c21;
  --color-brand-oklch: oklch(20.89% 0.0338 212.05);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(2 28 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#021c21] text-[#021c21] border-[#021c21]">