#020828#020828

#020828 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.5% C 0.067 H 265.7°. Best body text is #FFFFFF at 19.66:1 contrast (WCAG AA passes).

Color values

HEX#020828
RGBrgb(2, 8, 40)
HSLhsl(231, 90%, 8%)
HSVhsv(231, 95%, 16%)
CMYKcmyk(95%, 80%, 0%, 84.3%)
CIE-LABlab(3.07, 7.04, -20.30)
CIE-LCHlch(3.07, 21.49, 289.12°)
OKLaboklab(15.47% -0.005 -0.0669)
OKLCHoklch(15.47% 0.067 265.7)
XYZxyz(0.4947, 0.3397, 2.0466)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020828 #282202
analogous
#021B28 #020828 #0F0228
triadic
#020828 #280208 #082802
tetradic
#020828 #28021B #282202 #02280F
square
#020828 #28021B #282202 #02280F
split-complementary
#020828 #280F02 #1B2802
monochromatic
#01061D #01061D #020828 #051462 #081F9D

Accessibility & contrast

On white

19.66
#020828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#020828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020828
19.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020828#FFFFFF#000000##FFFFFF
##0208281.0019.661.0719.66
#FFFFFF19.661.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020828;
/* rgb */ color: rgb(2, 8, 40);
/* oklch */ color: oklch(15.5% 0.067 265.7);
Tailwind
colors: {
  custom: {
    50: '#484a62',
    500: '#020828',
    950: '#000000',
  },
}
SCSS
$custom: #020828;
$custom-light: #484a62;
$custom-dark: #000000;
JSON
{
  "hex": "#020828",
  "rgb": {
    "r": 2,
    "g": 8,
    "b": 40
  },
  "hsl": {
    "h": 230.526,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.15473,
    "c": 0.06712,
    "h": 265.7
  },
  "luminance": 0.0034
}

Semantic roles & 50–950 ramp

primary
#020828
secondary
#6D6019
accent
#DD29FF
background
#F4F4F5
surface
#E6E7EA
border
#C2C3C6
text
#000105
muted
#777779

Preview Lab

Preview with #020828

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

Preview Lab → · Contrast checker → · Palette generator →

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