#021535#021535

#021535 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.069 H 258.5°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#021535
RGBrgb(2, 21, 53)
HSLhsl(218, 93%, 11%)
HSVhsv(218, 96%, 21%)
CMYKcmyk(96.2%, 60.4%, 0%, 79.2%)
CIE-LABlab(7.28, 6.80, -23.29)
CIE-LCHlch(7.28, 24.26, 286.28°)
OKLaboklab(20.27% -0.0137 -0.0673)
OKLCHoklch(20.27% 0.069 258.5)
XYZxyz(0.9356, 0.8062, 3.4738)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021535 #352202
analogous
#022E35 #021535 #080235
triadic
#021535 #350215 #153502
tetradic
#021535 #35022E #352202 #023508
square
#021535 #35022E #352202 #023508
split-complementary
#021535 #350802 #2E3502
monochromatic
#010C1D #010C1D #021535 #042C70 #0644AB

Accessibility & contrast

On white

18.08
#021535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021535
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021535#FFFFFF#000000##FFFFFF
##0215351.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #021535;
/* rgb */ color: rgb(2, 21, 53);
/* oklch */ color: oklch(20.3% 0.069 258.5);
Tailwind
colors: {
  custom: {
    50: '#4c516c',
    500: '#021535',
    950: '#000000',
  },
}
SCSS
$custom: #021535;
$custom-light: #4c516c;
$custom-dark: #000000;
JSON
{
  "hex": "#021535",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 53
  },
  "hsl": {
    "h": 217.647,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2027,
    "c": 0.06865,
    "h": 258.5
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#021535
secondary
#79561A
accent
#AF29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021535

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

Preview Lab → · Contrast checker → · Palette generator →

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