#021828#021828

#021828 is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.0% C 0.043 H 242.1°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#021828
RGBrgb(2, 24, 40)
HSLhsl(205, 90%, 8%)
HSVhsv(205, 95%, 16%)
CMYKcmyk(95%, 40%, 0%, 84.3%)
CIE-LABlab(7.40, -1.81, -13.51)
CIE-LCHlch(7.40, 13.63, 262.37°)
OKLaboklab(20.05% -0.0203 -0.0384)
OKLCHoklch(20.05% 0.044 242.1)
XYZxyz(0.7345, 0.8193, 2.1265)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021828 #281202
analogous
#022825 #021828 #020528
triadic
#021828 #280218 #182802
tetradic
#021828 #250228 #281202 #052802
square
#021828 #250228 #281202 #052802
split-complementary
#021828 #280205 #282502
monochromatic
#01111D #01111D #021828 #053B62 #085E9D

Accessibility & contrast

On white

18.04
#021828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#021828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021828
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021828#FFFFFF#000000##FFFFFF
##0218281.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101829
Deuteranopia (green-blind)
#0B1528
Tritanopia (blue-blind)
#001C1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #021828;
/* rgb */ color: rgb(2, 24, 40);
/* oklch */ color: oklch(20.0% 0.043 242.1);
Tailwind
colors: {
  custom: {
    50: '#485462',
    500: '#021828',
    950: '#000000',
  },
}
SCSS
$custom: #021828;
$custom-light: #485462;
$custom-dark: #000000;
JSON
{
  "hex": "#021828",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 205.263,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.20047,
    "c": 0.0435,
    "h": 242.1
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#021828
secondary
#6D3C19
accent
#8329FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #021828

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#021828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva