#021028#021028

#021028 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.6% C 0.054 H 257.5°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#021028
RGBrgb(2, 16, 40)
HSLhsl(218, 90%, 8%)
HSVhsv(218, 95%, 16%)
CMYKcmyk(95%, 60%, 0%, 84.3%)
CIE-LABlab(4.85, 3.41, -17.52)
CIE-LCHlch(4.85, 17.84, 281.01°)
OKLaboklab(17.64% -0.0117 -0.053)
OKLCHoklch(17.64% 0.054 257.5)
XYZxyz(0.5932, 0.5366, 2.0794)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021028 #281A02
analogous
#022328 #021028 #070228
triadic
#021028 #280210 #102802
tetradic
#021028 #280223 #281A02 #022807
square
#021028 #280223 #281A02 #022807
split-complementary
#021028 #280702 #232802
monochromatic
#010C1D #010C1D #021028 #052762 #083F9D

Accessibility & contrast

On white

18.96
#021028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#021028 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021028
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021028#FFFFFF#000000##FFFFFF
##0210281.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041229
Deuteranopia (green-blind)
#000F28
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #021028;
/* rgb */ color: rgb(2, 16, 40);
/* oklch */ color: oklch(17.6% 0.054 257.5);
Tailwind
colors: {
  custom: {
    50: '#484e62',
    500: '#021028',
    950: '#000000',
  },
}
SCSS
$custom: #021028;
$custom-light: #484e62;
$custom-dark: #000000;
JSON
{
  "hex": "#021028",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 40
  },
  "hsl": {
    "h": 217.895,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17642,
    "c": 0.05431,
    "h": 257.5
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#021028
secondary
#6D4E19
accent
#B029FF
background
#F4F4F5
surface
#E6E7EA
border
#C2C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #021028

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

Preview Lab → · Contrast checker → · Palette generator →

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