#021536#021536

#021536 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.070 H 258.9°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#021536
RGBrgb(2, 21, 54)
HSLhsl(218, 93%, 11%)
HSVhsv(218, 96%, 21%)
CMYKcmyk(96.3%, 61.1%, 0%, 78.8%)
CIE-LABlab(7.37, 7.32, -23.88)
CIE-LCHlch(7.37, 24.98, 287.04°)
OKLaboklab(20.37% -0.0135 -0.069)
OKLCHoklch(20.37% 0.07 258.9)
XYZxyz(0.9588, 0.8155, 3.5962)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021536 #362302
analogous
#022F36 #021536 #090236
triadic
#021536 #360215 #153602
tetradic
#021536 #36022F #362302 #023609
square
#021536 #36022F #362302 #023609
split-complementary
#021536 #360902 #2F3602
monochromatic
#010B1E #010B1E #021536 #042C71 #0643AC

Accessibility & contrast

On white

18.05
#021536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#021536 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021536
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021536#FFFFFF#000000##FFFFFF
##0215361.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011937
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#001D22
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #021536;
/* rgb */ color: rgb(2, 21, 54);
/* oklch */ color: oklch(20.4% 0.070 258.9);
Tailwind
colors: {
  custom: {
    50: '#4c516d',
    500: '#021536',
    950: '#000000',
  },
}
SCSS
$custom: #021536;
$custom-light: #4c516d;
$custom-dark: #000000;
JSON
{
  "hex": "#021536",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 54
  },
  "hsl": {
    "h": 218.077,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20367,
    "c": 0.07031,
    "h": 258.9
  },
  "luminance": 0.00816
}

Semantic roles & 50–950 ramp

primary
#021536
secondary
#7A571A
accent
#B129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021536

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

Preview Lab → · Contrast checker → · Palette generator →

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