#021531#021531

#021531 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 19.9% C 0.062 H 256.5°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#021531
RGBrgb(2, 21, 49)
HSLhsl(216, 92%, 10%)
HSVhsv(216, 96%, 19%)
CMYKcmyk(95.9%, 57.1%, 0%, 80.8%)
CIE-LABlab(6.96, 4.70, -20.88)
CIE-LCHlch(6.96, 21.40, 282.68°)
OKLaboklab(19.9% -0.0145 -0.0603)
OKLCHoklch(19.9% 0.062 256.5)
XYZxyz(0.8474, 0.7709, 3.0093)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021531 #311E02
analogous
#022C31 #021531 #070231
triadic
#021531 #310215 #153102
tetradic
#021531 #31022C #311E02 #023107
square
#021531 #31022C #311E02 #023107
split-complementary
#021531 #310702 #2C3102
monochromatic
#010D1D #010D1D #021531 #042E6C #0747A7

Accessibility & contrast

On white

18.19
#021531 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#021531 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021531
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021531#FFFFFF#000000##FFFFFF
##0215311.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061832
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021531;
/* rgb */ color: rgb(2, 21, 49);
/* oklch */ color: oklch(19.9% 0.062 256.5);
Tailwind
colors: {
  custom: {
    50: '#4a5169',
    500: '#021531',
    950: '#000000',
  },
}
SCSS
$custom: #021531;
$custom-light: #4a5169;
$custom-dark: #000000;
JSON
{
  "hex": "#021531",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 49
  },
  "hsl": {
    "h": 215.745,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19896,
    "c": 0.06201,
    "h": 256.5
  },
  "luminance": 0.00771
}

Semantic roles & 50–950 ramp

primary
#021531
secondary
#755019
accent
#A829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021531

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

Preview Lab → · Contrast checker → · Palette generator →

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