#020728#020728

#020728 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.2% C 0.069 H 266.4°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#020728
RGBrgb(2, 7, 40)
HSLhsl(232, 90%, 8%)
HSVhsv(232, 95%, 16%)
CMYKcmyk(95%, 82.5%, 0%, 84.3%)
CIE-LABlab(2.87, 7.44, -20.61)
CIE-LCHlch(2.87, 21.91, 289.86°)
OKLaboklab(15.19% -0.0043 -0.0688)
OKLCHoklch(15.19% 0.069 266.4)
XYZxyz(0.4839, 0.3180, 2.0429)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020728 #282302
analogous
#021A28 #020728 #100228
triadic
#020728 #280207 #072802
tetradic
#020728 #28021A #282302 #022810
square
#020728 #28021A #282302 #022810
split-complementary
#020728 #281002 #1A2802
monochromatic
#01051D #01051D #020728 #051162 #081B9D

Accessibility & contrast

On white

19.74
#020728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#020728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020728
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020728#FFFFFF#000000##FFFFFF
##0207281.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C29
Deuteranopia (green-blind)
#000927
Tritanopia (blue-blind)
#001016
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #020728;
/* rgb */ color: rgb(2, 7, 40);
/* oklch */ color: oklch(15.2% 0.069 266.4);
Tailwind
colors: {
  custom: {
    50: '#484a62',
    500: '#020728',
    950: '#000000',
  },
}
SCSS
$custom: #020728;
$custom-light: #484a62;
$custom-dark: #000000;
JSON
{
  "hex": "#020728",
  "rgb": {
    "r": 2,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 232.105,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.15193,
    "c": 0.0689,
    "h": 266.4
  },
  "luminance": 0.00318
}

Semantic roles & 50–950 ramp

primary
#020728
secondary
#6D6219
accent
#E329FF
background
#F4F4F5
surface
#E6E7EA
border
#C2C3C6
text
#000105
muted
#777779

Preview Lab

Preview with #020728

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

Preview Lab → · Contrast checker → · Palette generator →

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