#020528#020528

#020528 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.6% C 0.073 H 267.7°. Best body text is #FFFFFF at 19.91:1 contrast (WCAG AA passes).

Color values

HEX#020528
RGBrgb(2, 5, 40)
HSLhsl(235, 90%, 8%)
HSVhsv(235, 95%, 16%)
CMYKcmyk(95%, 87.5%, 0%, 84.3%)
CIE-LABlab(2.48, 8.24, -21.22)
CIE-LCHlch(2.48, 22.76, 291.23°)
OKLaboklab(14.6% -0.0029 -0.0727)
OKLCHoklch(14.6% 0.073 267.7)
XYZxyz(0.4622, 0.2746, 2.0357)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020528 #282502
analogous
#021828 #020528 #120228
triadic
#020528 #280205 #052802
tetradic
#020528 #280218 #282502 #022812
square
#020528 #280218 #282502 #022812
split-complementary
#020528 #281202 #182802
monochromatic
#01041D #01041D #020528 #050C62 #08149D

Accessibility & contrast

On white

19.91
#020528 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020528
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020528#FFFFFF#000000##FFFFFF
##0205281.0019.911.0619.91
#FFFFFF19.911.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B29
Deuteranopia (green-blind)
#000727
Tritanopia (blue-blind)
#000E15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #020528;
/* rgb */ color: rgb(2, 5, 40);
/* oklch */ color: oklch(14.6% 0.073 267.7);
Tailwind
colors: {
  custom: {
    50: '#474962',
    500: '#020528',
    950: '#000000',
  },
}
SCSS
$custom: #020528;
$custom-light: #474962;
$custom-dark: #000000;
JSON
{
  "hex": "#020528",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 40
  },
  "hsl": {
    "h": 235.263,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.14602,
    "c": 0.07274,
    "h": 267.7
  },
  "luminance": 0.00275
}

Semantic roles & 50–950 ramp

primary
#020528
secondary
#6D6719
accent
#EE29FF
background
#F4F4F5
surface
#E6E6EA
border
#C2C2C6
text
#000005
muted
#777779

Preview Lab

Preview with #020528

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

Preview Lab → · Contrast checker → · Palette generator →

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