#021532#021532

#021532 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.0% C 0.064 H 257.1°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#021532
RGBrgb(2, 21, 50)
HSLhsl(216, 92%, 10%)
HSVhsv(216, 96%, 20%)
CMYKcmyk(96%, 58%, 0%, 80.4%)
CIE-LABlab(7.04, 5.23, -21.49)
CIE-LCHlch(7.04, 22.11, 283.68°)
OKLaboklab(19.99% -0.0143 -0.0621)
OKLCHoklch(19.99% 0.064 257.1)
XYZxyz(0.8687, 0.7794, 3.1216)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021532 #321F02
analogous
#022D32 #021532 #070232
triadic
#021532 #320215 #153202
tetradic
#021532 #32022D #321F02 #023207
square
#021532 #32022D #321F02 #023207
split-complementary
#021532 #320702 #2D3202
monochromatic
#010C1D #010C1D #021532 #042E6D #0746A8

Accessibility & contrast

On white

18.17
#021532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021532
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021532#FFFFFF#000000##FFFFFF
##0215321.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051833
Deuteranopia (green-blind)
#001331
Tritanopia (blue-blind)
#001C21
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #021532;
/* rgb */ color: rgb(2, 21, 50);
/* oklch */ color: oklch(20.0% 0.064 257.1);
Tailwind
colors: {
  custom: {
    50: '#4b516a',
    500: '#021532',
    950: '#000000',
  },
}
SCSS
$custom: #021532;
$custom-light: #4b516a;
$custom-dark: #000000;
JSON
{
  "hex": "#021532",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 50
  },
  "hsl": {
    "h": 216.25,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19988,
    "c": 0.06368,
    "h": 257.1
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#021532
secondary
#765219
accent
#AA29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021532

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

Preview Lab → · Contrast checker → · Palette generator →

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