#020028#020028

#020028 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.9% C 0.084 H 269.8°. Best body text is #FFFFFF at 20.33:1 contrast (WCAG AA passes).

Color values

HEX#020028
RGBrgb(2, 0, 40)
HSLhsl(243, 100%, 8%)
HSVhsv(243, 100%, 16%)
CMYKcmyk(95%, 100%, 0%, 84.3%)
CIE-LABlab(1.50, 10.24, -22.75)
CIE-LCHlch(1.50, 24.95, 294.24°)
OKLaboklab(12.86% -0.0002 -0.0844)
OKLCHoklch(12.86% 0.084 269.8)
XYZxyz(0.4079, 0.1661, 2.0176)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020028 #262800
analogous
#001228 #020028 #160028
triadic
#020028 #280200 #002802
tetradic
#020028 #280012 #262800 #002816
square
#020028 #280012 #262800 #002816
split-complementary
#020028 #281600 #122800
monochromatic
#02001F #02001F #020028 #050065 #0800A2

Accessibility & contrast

On white

20.33
#020028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#020028 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020028
20.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020028#FFFFFF#000000##FFFFFF
##0200281.0020.331.0320.33
#FFFFFF20.331.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000729
Deuteranopia (green-blind)
#000427
Tritanopia (blue-blind)
#000A13
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #020028;
/* rgb */ color: rgb(2, 0, 40);
/* oklch */ color: oklch(12.9% 0.084 269.8);
Tailwind
colors: {
  custom: {
    50: '#474762',
    500: '#020028',
    950: '#000000',
  },
}
SCSS
$custom: #020028;
$custom-light: #474762;
$custom-dark: #000000;
JSON
{
  "hex": "#020028",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 40
  },
  "hsl": {
    "h": 243,
    "s": 100,
    "l": 7.843
  },
  "oklch": {
    "l": 0.12861,
    "c": 0.08441,
    "h": 269.8
  },
  "luminance": 0.00166
}

Semantic roles & 50–950 ramp

primary
#020028
secondary
#6B7014
accent
#FF29F4
background
#F4F3F5
surface
#E6E5EA
border
#C2C1C6
text
#000005
muted
#777779

Preview Lab

Preview with #020028

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

Preview Lab → · Contrast checker → · Palette generator →

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