#020522#020522

#020522 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.8% C 0.063 H 268.0°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#020522
RGBrgb(2, 5, 34)
HSLhsl(234, 89%, 7%)
HSVhsv(234, 94%, 13%)
CMYKcmyk(94.1%, 85.3%, 0%, 86.7%)
CIE-LABlab(2.14, 5.85, -17.09)
CIE-LCHlch(2.14, 18.06, 288.89°)
OKLaboklab(13.8% -0.0022 -0.0628)
OKLCHoklch(13.8% 0.063 268)
XYZxyz(0.3679, 0.2369, 1.5394)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020522 #221F02
analogous
#021522 #020522 #0F0222
triadic
#020522 #220205 #052202
tetradic
#020522 #220215 #221F02 #02220F
square
#020522 #220215 #221F02 #02220F
split-complementary
#020522 #220F02 #152202
monochromatic
#02041D #02041D #020522 #050E5C #091696

Accessibility & contrast

On white

20.05
#020522 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#020522 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020522
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020522#FFFFFF#000000##FFFFFF
##0205221.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000923
Deuteranopia (green-blind)
#000621
Tritanopia (blue-blind)
#000C12
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #020522;
/* rgb */ color: rgb(2, 5, 34);
/* oklch */ color: oklch(13.8% 0.063 268.0);
Tailwind
colors: {
  custom: {
    50: '#47495d',
    500: '#020522',
    950: '#000000',
  },
}
SCSS
$custom: #020522;
$custom-light: #47495d;
$custom-dark: #000000;
JSON
{
  "hex": "#020522",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 34
  },
  "hsl": {
    "h": 234.375,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.13802,
    "c": 0.06288,
    "h": 268
  },
  "luminance": 0.00237
}

Semantic roles & 50–950 ramp

primary
#020522
secondary
#686018
accent
#EB29FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #020522

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

Preview Lab → · Contrast checker → · Palette generator →

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